Learn WordPress
Home » Programming

Error Establishing a Database Connection

Error Establishing a Database Connection

Yesterday one of my buddys blog that it was fairly heavy traffic was down a few minutes and when opened display the message “Error Establishing a Database Connection” or in some other cases the “Database Connection Error”. She was scrambling because this is her first time experiencing thanks to such problems. And then she was ask me her problem.

And the clue is problems WordPress database error: [MySQL server has gone away] was due to the weight of load mysql query until timed out very long, “using heavy-plugins and MySQL query was timed out being very long”.

How to Fix MySQL Error?
To fix this issue, you must edit the file wp-includes/wp-db.php. Luckily took the time to create a fix on wp-includes/wp-db.php, Download the file fix-the original form of text file, rename it to wp-db.php first-and then replace the file wp-db.php.

Before performing, you should backup the file before replace the edited files from the server to the local hard drive, so if there is something undesirable, can be returned to its original state.

Install WP Database manager plugin, this plugin will helpful if at any time happen the same case or similar case.

FREE Cloud Storage