{"id":710,"date":"2013-07-29T04:13:38","date_gmt":"2013-07-29T04:13:38","guid":{"rendered":"http:\/\/invisiblezero.net\/?p=710"},"modified":"2013-07-29T04:13:38","modified_gmt":"2013-07-29T04:13:38","slug":"mysql-general-error-2006-mysql-server-has-gone-away","status":"publish","type":"post","link":"http:\/\/ndthanh.com\/mysql-general-error-2006-mysql-server-has-gone-away\/","title":{"rendered":"MySQL general error – 2006 MySQL server has gone away"},"content":{"rendered":"

\"paperplan\"<\/p>\n

Does this error message scare you ?<\/p>\n

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away<\/p>\n

Today we will take a look at it and find ways to deal with it \ud83d\ude42 . after investigating the issue and google it online, i founded two most common reasons (and fixes) for the MySQL server has gone away (error 2006) are:<\/p>\n

<\/p>\n

1.Server timed out and closed the connection. How to fix: check that wait_timeout variable in your mysqld\u2019s my.cnf\/my.ini configuration file is large enough.<\/p>\n