求ecshop高手解决问题!ECSHOP info: Can't Connect MySQL Server()! 在线等!急
报如下错误!Notice:Undefinedvariable:db_namein/data/home/nuv1025/htdocs/includes/init.phpon...
报如下错误!
Notice: Undefined variable: db_name in /data/home/nuv1025/htdocs/includes/init.php on line 103
Notice: Undefined variable: prefix in /data/home/nuv1025/htdocs/includes/init.php on line 103
Notice: Undefined variable: db_host in /data/home/nuv1025/htdocs/includes/init.php on line 110
Notice: Undefined variable: db_user in /data/home/nuv1025/htdocs/includes/init.php on line 110
Notice: Undefined variable: db_pass in /data/home/nuv1025/htdocs/includes/init.php on line 110
Notice: Undefined variable: db_name in /data/home/nuv1025/htdocs/includes/init.php on line 110
ECSHOP info: Can't Connect MySQL Server()! 展开
Notice: Undefined variable: db_name in /data/home/nuv1025/htdocs/includes/init.php on line 103
Notice: Undefined variable: prefix in /data/home/nuv1025/htdocs/includes/init.php on line 103
Notice: Undefined variable: db_host in /data/home/nuv1025/htdocs/includes/init.php on line 110
Notice: Undefined variable: db_user in /data/home/nuv1025/htdocs/includes/init.php on line 110
Notice: Undefined variable: db_pass in /data/home/nuv1025/htdocs/includes/init.php on line 110
Notice: Undefined variable: db_name in /data/home/nuv1025/htdocs/includes/init.php on line 110
ECSHOP info: Can't Connect MySQL Server()! 展开
3个回答
展开全部
打开ecshop 根目录下的data 文件夹,下面有 config.php 这个文件,用记事本把他打开,然后修改里面的sql连接内容,给你一个例子,你可以参考一下。
<?php
// database host
$db_host = "localhost:3306";
// database name
$db_name = "test";
// database username
$db_user = "root";
// database password
$db_pass = "root";
// table prefix
$prefix = "ecs_";
$timezone = "UTC";
$cookie_path = "/";
$cookie_domain = "";
$session = "1440";
define('EC_CHARSET','utf-8');
define('ADMIN_PATH','admin');
define('AUTH_KEY', 'this is a key');
define('OLD_AUTH_KEY', '');
?>
如果不明白,可以继续问
<?php
// database host
$db_host = "localhost:3306";
// database name
$db_name = "test";
// database username
$db_user = "root";
// database password
$db_pass = "root";
// table prefix
$prefix = "ecs_";
$timezone = "UTC";
$cookie_path = "/";
$cookie_domain = "";
$session = "1440";
define('EC_CHARSET','utf-8');
define('ADMIN_PATH','admin');
define('AUTH_KEY', 'this is a key');
define('OLD_AUTH_KEY', '');
?>
如果不明白,可以继续问
追问
现在数据库倒是连上了 出这种错误了:
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT code, value FROM `nuv1025_db`.`ecs_shop_config` WHERE parent_id > 0 ) [2] => Array ( [error] => Table 'nuv1025_db.ecs_shop_config' doesn't exist ) [3] => Array ( [errno] => 1146 ) )
追答
我给你的不能直接用呀,需要修改,比如你数据库的地址,端口号,数据库名称,密码等等,是要修改的。
如果需要我帮你写,你把上面的这些信息写给我,我帮你。如果你也不清楚,那你就不用回复我了。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询