{"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":"
<\/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
2.Server dropped an incorrect or too large packet. If mysqld gets a packet that is too large or incorrect, it assumes that something has gone wrong with the client and closes the connection. You can increase the maximal packet size limit by increasing the value of max_allowed_packet in my.cnf\/my.ini file.<\/p>\n
Does this error message scare you ? SQLSTATE[HY000]: General error: 2006 MySQL server has gone away 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…<\/p>\n