MySQL server has gone away 2013. Lost connection to MySQL server during query 官网分析其原因及解决办法: http://dev.mysql.com/doc/refman/5.0/en/gone-away.html