新补丁覆盖后,访问不了了 出现错误

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

Notice: Undefined variable: db_name in /home/happywig/domains/happywigs.com/public_html/admin/includes/init.php on line 115

Notice: Undefined variable: prefix in /home/happywig/domains/happywigs.com/public_html/admin/includes/init.php on line 115

Notice: Undefined variable: db_host in /home/happywig/domains/happywigs.com/public_html/admin/includes/init.php on line 121

Notice: Undefined variable: db_user in /home/happywig/domains/happywigs.com/public_html/admin/includes/init.php on line 121

Notice: Undefined variable: db_pass in /home/happywig/domains/happywigs.com/public_html/admin/includes/init.php on line 121

Notice: Undefined variable: db_name in /home/happywig/domains/happywigs.com/public_html/admin/includes/init.php on line 121
ECSHOP info: Can't Connect MySQL Server()!

回答:
你好,请问你原先用的是什么版本的ecshop?
错误提示是你的配置表错,data/config.php。重新配置下该文件。格式
  1. <?php
  2. // database host
  3. $db_host= "localhost:3306";

  4. // database name
  5. $db_name= "u8";

  6. // database username
  7. $db_user= "root";

  8. // database password
  9. $db_pass= "root";

  10. // table prefix
  11. $prefix = "ecs_";

  12. $timezone = "UTC";

  13. $cookie_path = "/";

  14. $cookie_domain = "";

  15. $session = "1440";

  16. define('EC_CHARSET','utf-8');

  17. define('ADMIN_PATH','admin');

  18. define('AUTH_KEY', 'this is a key');

  19. define('OLD_AUTH_KEY', '');

  20. define('API_TIME', '2010-12-22 02:43:21');

  21. ?>
复制代码

把自己的配置项 补上就可以了

对.这个是配置文件引起的饿

修改一下配置文件吧