Warning: Illegal string offset 'top' in /www/wwwroot/hellyhua.com/wp-content/themes/Snape/single.php on line 45

        在论坛和搜索引擎上搜了下遇到这样错误的童鞋们比较多啊,这基本应该都是搬家引起的,属于数据库连接不对。为了让更多的朋友更快的解决问题现把报错提示和解决方案公布,希望能帮到更多的朋友

报错提示:
您已退出站点,现在将以游客身份转入退出前页面,请稍候。。。
UCenter info:can not connenct to mysql server
ERROR:Access denied for user‘sq_yancheng’@ ‘localhost’(using password:YES)
Errno:1045

问题的解决方案:Ucente程序配置文件不错,数据库连接不上。修改uc_server文件夹下data文件夹内的config.inc.php文件,配置好正确的数据库链接。{这是DISCUZ论坛的}

其他常见程序的数据库链接文件到底是哪一个:
1. 帝国系统网站数据库配置文件路径:web/e/class/config.php
2. shopex系统网站数据库配置文件路径:web/config/config.php
3. DEDECMS(织梦)系统网站数据库配置文件路径:web/data/ common.inc.php
4. php168系统网站的数据库配置文件路径:web/php168/mysql_config.php
    ecshop系统的数据库配置文件路劲一般为Web/data/config.php
5. 其他.net的网站一般web/web.config文件是数据库配置文件
6.phpcms系统的数据库配置文件路径:web/include/config.inc.php
7.discuz论坛系统的网站的数据库配置文件一般3个,分别为:    web/uc_server/data/config.inc.php
  web/config/config_global.php
  web/config/config_ucenter.php

8.修改  ucenter:data/config.inc.php


Warning: Illegal string offset 'footer' in /www/wwwroot/hellyhua.com/wp-content/themes/Snape/single.php on line 49