ecshop提示MySQL server error report:Array ( [0] => Array ( [message] =>...解决方法
新的ecshop商城网站用久了,在订单提交时候可能会出现如下报错:
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT card_sn, card_password, end_date, crc32 FROM `shop`.`ecs_virtual_card` WHERE goods_id= '8' AND order_sn = '2008071156186' ) [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 card_sn, card_password, end_date, crc32 FROM `shop`.`ecs_virtual_card` WHERE goods_id= '8' AND order_sn = '2008071156186' ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => DESC `shop`.`ecs_sessions_data` ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )
这里最模板提供详细的解决方法步骤:
1、先确定服务器数据库未满,若空间不足,增加硬盘存储空间或清理其他文件
2、清空
ecs_sessions
ecs_sessions_data
ecs_carts
三个表,在phpmyadmin命令
TRUNCATE `ecs_cart`;
TRUNCATE `ecs_sessions`;
TRUNCATE `ecs_sessions_data`;
3、设置php程序最长运行时间 max_execution_time,如3000秒。
找到php.ini文件,设置代码
max_execution_time = 3000
4、检查ECSHOP后台是否设置了订单提交有邮件提醒等设置,再ECSHOP网站后台点清空缓存,服务器重启。
结果以上四个步骤,基本网站正常。 如果还是不行,考虑是硬件问题,该升级服务器了!
原文链接:https://www.qiquanji.com/post/8819.html
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
微信扫码关注
更新实时通知