InMotion Hosting Support Center

Frequently Getting Database Connection Errors after InMotion Server Move for my Account

Category: Databases

2013-03-01 12:12 pm EST

Hits: 439

Ever since my account (bharar5) was moved to a different server on Feb 9th (2013), I've been getting "error establishing a database connection" messages quite frequently (at least 1-2 times a day). The problem fixes itself in a few minutes but I'm concerned why this is happening.

This was never a issue before the server move. This is why I'm assuming it is related to the server move as I have made no changes from my side.

My Wordpress site URL:


You must login before you can ask a follow up question.

You must login before you can submit an answer.



9,968 Points
2013-03-01 2:37 pm EST
Hello Neeraj, and thank you for your question.

I'm not sure if the server move in itself would have caused these issues for you, as the newer server you're on is much less populated and has overall less MySQL usage.

Typically you can encounter a database connection error if your user is hitting its max of 30 connections at once. One thing I would strongly recommend that you do is enable a caching plugin on your WordPress site. This will help limit the overall amount of database interaction that your site has to do, and reduce the amount of connections as well.

We have a guide on optimizing WordPress with W3 Total Cache plugin which is one of the more advanced WordPress caching plugins. We also have a guide on optimizing WordPress with WP Super Cache plugin which is a more simple to setup caching plugin for WordPress.

There are also some other common things which can cause WordPress to use a lot of database interaction. I'd also recommend being sure to log out of WordPress admin dashboard when not in use, disable WordPress autosave, and limit or disable WordPress revisions.

If you continue to experience database connectivity issues after enabling caching on your WordPress site please let us know.

- Jacob

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!