网站打开就出现错误,请指导。

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

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT SUM(goods_number) AS number, SUM(goods_price * goods_number) AS amount FROM `sqlsnd520`.`ecs_cart` WHERE session_id = '77927dd382c11f26a71dee685289be71' AND rec_type = '0' ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) ) MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT SUM(goods_number) AS number, SUM(goods_price * goods_number) AS amount FROM `sqlsnd520`.`ecs_cart` WHERE session_id = '77927dd382c11f26a71dee685289be71' AND rec_type = '0' ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => UPDATE `sqlsnd520`.`ecs_sessions` SET expiry = '1277648498', ip = '124.90.130.127', userid = '0', adminid = '0', user_name='0', user_rank='0', discount='1', email='0', data = 'a:1:{s:10:\"login_fail\";i:0;}' WHERE sesskey = '77927dd382c11f26a71dee685289be71' LIMIT 1 ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )

回答:
你数据库结构。是不是被修改过

没有改过,系统刚装才3天。只有建了个分类。还有导入了SHOPEX484的会员。另外加载了一个新模板。其他数据未做改变连产品都没上。

MySQL server has gone away

你数据库问题

我把数据都删除了,然后重建数据库。重新安装ECSHOP,还是出现这样的问题。 而且白天很严重,经常这样。但到了晚上8点后就很正常。

会不会是主机商那边服务器问题呢?有没有这个可能性

肯定是被限制了MYSQL链接线程数,咨询一下你的服务商哦

嗯,换了服务器,现在好了。