服务报价 | 域名主机 | 网络营销 | 软件工具| [加入收藏]
 热线电话: #
当前位置: 主页 > php教程 > ecshop教程 >

ecshop报错ecs_sessions_data` ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )

时间:2017-03-17 21:32来源:未知 作者:最模板 点击:
新的ecshop商城网站用久了,在订单提交时候可能会出现如下报错: MySQL server error report:Array ( [0] = Array ( [message] = MySQL Query Error ) [1] = Array ( [sql] = SELECT card_sn, card_password, end_date, crc32 FROM
新的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`;
//www.zuimoban.com

3.设置php程序最长运行时间 max_execution_time,如3000秒。
找到php.ini文件,设置代码

max_execution_time = 3000


4. 检查ECSHOP后台是否设置了订单提交有邮件提醒等设置,再ECSHOP网站后台点清空缓存,服务器重启。

结果以上四个步骤,基本网站正常。 如果还是不行,考虑是硬件问题,该升级服务器了!(责任编辑:最模板)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------