I’m getting a ‘MySQL server has gone away’ error in my application

There are two main reasons for this error message to show:

1) The MySQL query you are trying to execute takes too long and the MySQL server times out.

The solution for this issue is to optimize your database for the queries which fail.

2) You have a crashed table in your database.

The solution in this case is to repair and optimize your database.

If a particular table crashes often and repairing/optimizing it does not help,  this most probably means that the table's structure has an issue with our MySQL server setup. In such cases the easiest way to fix a crashed MyISAM table for good is to change its database engine from MyISAM to InnoDB.
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

How to solve “Reported Attack Site!” ?

If you see this on your website, it means your website is already compromised and flagged by...

HTTP Error – Bad Gateway

This error indicates a server side problem. Please log in your Client Area and check if there are...

HTTP error codes explained

There are multiple HTTP codes that you may come across. Below you can find a summary of the most...

My application cannot connect to my database.

If your application cannot connect to the database you should make sure that: Your application...

Site shows PHP warnings / errors

PHP warnings / errors show for various reasons. In case you get such PHP messages on your...