How to fix “MySQL server has gone away” error?

While restoring your database you may encounter “MySQL server has gone away” warning. There are generally two main causes for this error:
  • the server timed out and closed the connection
  • server dropped an incorrect or too large packet
To fix the issue you will have to contact your hosting provider and ask them increase the size of these two values: max_allowed_packet & wait_timeout

Back to search