求救!!!!!

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

MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT library, number FROM `gksww`.`gk_template` WHERE theme = 'gkcity' AND filename = 'index' AND remarks='' ) [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 library, number FROM `gksww`.`gk_template` WHERE theme = 'gkcity' AND filename = 'index' AND remarks='' ) [2] => Array ( [error] => MySQL server has gone away ) [3] => Array ( [errno] => 2006 ) [4] => Array ( [message] => MySQL Query Error ) [5] => Array ( [sql] => UPDATE `gksww`.`gk_sessions` SET expiry = '1264575536', ip = '114.93.111.215', userid = '7', adminid = '0', user_name='jingjingonline', user_rank='0', discount='1', email='jingjingonline@126.com', data = 'a:5:{s:7:\"from_ad\";i:0;s:7:\"referer\";s:4:\"本站\";s:10:\"login_fail\";i:0;s:9:\"last_time\";s:10:\"1264464828\";s:7:\"last_ip\";s:14:\"114.93.105.236\";}' WHERE sesskey = '07db2464db2682efd8c989dcfbccaf7a' LIMIT 1 ) [6] => Array ( [error] => MySQL server has gone away ) [7] => Array ( [errno] => 2006 ) )

请教,这怎么解决!
刷新一下又好了!

网站:www.gksww.com

回答:
程序长时间执行批量的MYSQL语句可能会这样

有何解决方法呢?

http://bbs.ecshop.com/viewthread ... mp;extra=#pid396795
79