用户提交订单就提示错误

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

请问是什么原因引起的 该如何修正?非常感谢!

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT card_sn, card_password, end_date, crc32 FROM `s473566db0`.`ecs_virtual_card` WHERE goods_id= '3' AND order_sn = '2010092580286' ) [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 `s473566db0`.`ecs_virtual_card` WHERE goods_id= '3' AND order_sn = '2010092580286' ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => DESC `s473566db0`.`ecs_sessi**_data` ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )

回答:
你怎么这么多数据库报错呀 建议修复

这个不是数据库修复问题。是你数据库连接时间超时...你必须设置 wait-timeout大一些

确定是wait-timeout 的问题么?