前台正常,后台无法登陆,提示mysql无法连接,何故?

2016-07-07 15:18 来源:www.chinab4c.com 作者:ecshop专家



独立服务器,PHP和mysql运行正常,
ECSHOP运行了很长时间,近日突然出现奇怪的现象:
1、前台一切正常
2、后台登陆页面出错,提示信息如下:

Warning: include() [function.include]: Unable to access ../includes/config.php in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 53

Warning: include(../includes/config.php) [function.include]: failed to open stream: Permission denied in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 53

Warning: include() [function.include]: Failed opening '../includes/config.php' for inclusion (include_path='.;ROOT_PATH') in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 53

Notice: Undefined variable: db_name in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 115

Notice: Undefined variable: prefix in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 115

Notice: Undefined variable: db_host in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 121

Notice: Undefined variable: db_user in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 121

Notice: Undefined variable: db_pass in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 121

Notice: Undefined variable: db_name in D:\WWWROOT\ecshop\wwwroot\admin\includes\init.php on line 121
ECSHOP info: Can't Connect MySQL Server()!


初看之下,以为是mysql的账号密码有误,遂将mysql和ecshop的配置文件(data/config.php)中数据库账号密码部分重新设置配置,前台仍然正常显示,后台还是显示上面的错误信息。

我的理解是,前台都能正常连接到mysql,说明mysql的账号密码无误,那是后台有单独的配置文件吗?看到includes/init.php文件中有说到include('../includes/config.php');
可是在根目录includes目录下和admin目录下的includes目录,均未找到有config.php目录,是这个文件被删除了吗?

求教!

回答:
真冷场啊……

数据库链接文件没有修改阿

除了config.php还有哪里有配置文件?