网站数据库出现乱码,网站打不开

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

Notice: Undefined variable: db_name in /var/www/vhosts/ov17.com/httpdocs/admin/includes/init.php on line 115 Notice: Undefined variable: prefix in /var/www/vhosts/ov17.com/httpdocs/admin/includes/init.php on line 115 Notice: Undefined variable: db_host in /var/www/vhosts/ov17.com/httpdocs/admin/includes/init.php on line 121 Notice: Undefined variable: db_user in /var/www/vhosts/ov17.com/httpdocs/admin/includes/init.php on line 121 Notice: Undefined variable: db_pass in /var/www/vhosts/ov17.com/httpdocs/admin/includes/init.php on line 121 Notice: Undefined variable: db_name in /var/www/vhosts/ov17.com/httpdocs/admin/includes/init.php on line 121 ECSHOP info: Can't Connect MySQL Server()!

紧急求助,希望高手指点一下,谢谢!!!

回答:
db_name, prefix,db_host,db_user,db_pass,db_name这几个变量定义在data/config.php中,检查一下这个文件存在吗?可能是你网站的data/config.php文件丢失了

你看下配置文件是否有问题。

主要还是后天

好像比较乱。。。是不是网站空间环境变了?




恩,你说的很对,是config文件丢失了!