安装时出现数据安装失败?

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

好像跟这贴子一样的错误环境都在这个帖子里http://bbs.ecshop.com/thread-138638-1-1.html
只要再安装一次。数据就会成功。但是管理员还是会创建失败!!!!




创建配置文件............成功
创建数据库............成功
安装数据............失败

Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in E:\ecshop\upload\includes\cls_mysql.php on line 163 Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in E:\ecshop\upload\includes\cls_mysql.php on line 163 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in E:\ecshop\upload\includes\cls_mysql.php on line 165 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in E:\ecshop\upload\includes\cls_mysql.php on line 165 Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in E:\ecshop\upload\includes\cls_mysql.php on line 173 Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in E:\ecshop\upload\includes\cls_mysql.php on line 173 OK

回答:
在install/includes/init.php文件里加入一句
date_default_timezone_set ('Asia/Shanghai');
这样就行了。哎

在安装ecshop2.7.2到ubuntu10。10上。在安装到第三步时出现配置文件成功,但创建数据库失败。没有更多提示。我填写的数据库主机名为localhost。安装时能检测到已存在1个数据库。在用mysql数据库管理连接时可也连到服务器上。除了不支持哪三种图片和gd库,服务器安全模式关闭外其余文件都为可写,支持,完整。装了多遍还是老问题。把时区改为在install/includes/init.php文件里加入一句
date_default_timezone_set ('Asia/Shanghai');也是同样的问题。