求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', '');
?>
如果不明白,可以继续问
2011-08-26
展开全部
错误是ECSHOP 中这行代码103行代码
includes/init.php
/* 创建 ECSHOP 对象 */
$ecs = new ECS($db_name, $prefix);
就是连接数据错误。应该是的名和前缀的问题。。能分析的就是这些。 还要你的具体怎么设置的
includes/init.php
/* 创建 ECSHOP 对象 */
$ecs = new ECS($db_name, $prefix);
就是连接数据错误。应该是的名和前缀的问题。。能分析的就是这些。 还要你的具体怎么设置的
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
<?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', '');
?>
// 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', '');
?>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询