西部数码主机 | 阿里云主机| 虚拟主机 | 服务器 | 返回乐道官网
当前位置: 主页 > 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.ldhost.cn

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

max_execution_time = 3000


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

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