MySQL: fixing ‘MySQL server has gone away (error 2006)’ error

If you try to import / restore some big MySQL database  you may have encountered such error:

MySQL server has gone away (error 2006)

To fix it you would need to increase wait_timeout and max_allowed_packet:

wait_timeout = 6000
max_allowed_packet = 128M

It should fix the problem.



Leave a Reply

Your email address will not be published.