Error establishing a database connection, a really frustrating error message faced by many webmasters on a daily basis, the reason for this error can be different however result is same “Bad user Experience”
Any site can come across this issue because you can’t be proactive about this error at times, if you don’t have an well managed hosting server and a team to take care of your web infra.
Think about the users who visits your site during the time when your site is down and showing Error establishing a database connection message, it definately creates a negative image about your brand, some of those users may not comeback to your site ever again.
Why this error?
As already mentioned the reason for showing Error establishing a database connection can be different at times, may be the database server is not responding, may be the connection credentials are not correct or the database is corrupted.
Sometimes there are too many connections to your database at the same time and it may not respond and you end up getting “Error establishing a database connection”error, which can be minimized by optimizing your site.
We faced this issue quite a few times on Indexwp recently and the reason was because the server was non responsive at that moment and it was fine after re starting MySQL Server, we are trying to counter it by migrating Indexwp to a better managed server.
The first reaction?
While you start looking at the issue, it is always better to give a call to your hosting guys and inform them about the issue, so that they can start looking if there is any issue with the server.
[symple_box style=”boxinfo”]
Error Establishing a Database Connection in WP Style
[/symple_box]
Now, coming back to the topic, while you play around with the site and the server to find the issue you may end up frustrating a lot of users already.
So, if you are one of those webmasters who is getting Error establishing a database connection error quite often, a plugin called Custom WP Database Error gives you an almost perfect solution to manage this issue.
This plugin will not rectify the error however it will give you a better way to manage the users who visits your site during the time when your site is down with database connection issue.
This plugin replaces the standard “Error establishing database connection” screen with a WordPress styled one when not in debug mode.
You will be given an option to show your custom message to your visitors instead of Error establishing a database connection and you may request them to visit your site after sometime.
This plugin can be really handy to make your brand image survive through this error.
Leave a Reply