MySQL server error report:Array 这个错误是服务器还是程序的问题?

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

MySQL server error report:Array 这个错误是服务器还是程序的问题?
谢谢!
=================================
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 `mysqlhongjiuhui`.`Wine_cart` WHERE session_id = 'f5ae0843c125813b984e1cc218a6c47d' 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 `mysqlhongjiuhui`.`Wine_cart` WHERE session_id = 'f5ae0843c125813b984e1cc218a6c47d' 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 `mysqlhongjiuhui`.`Wine_sessions` SET expiry = '1251613985', ip = '119.132.110.38', userid = '0', adminid = '0', user_name='0', user_rank='0', discount='1', email='0', data = 'a:3:{s:7:\"from_ad\";i:0;s:7:\"referer\";s:6:\"本站\";s:10:\"login_fail\";i:0;}' WHERE sesskey = 'f5ae0843c125813b984e1cc218a6c47d' LIMIT 1 ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )

回答:
数据库错误,尝试修复一下

session表有问题