Owning a website is a bit like owning a car. You might have periods of time where nothing goes wrong and so you don’t think too much about it. Then something happens, and it’s panic stations trying to work out what’s wrong and how to fix it. 

With your website, when something goes wrong you might start googling things and realise you have no idea what anyone is on about. This is such a situation…it sounds like a very scary error and will most likely send you into the corner rocking.

But don’t worry, I’m here to help.

 

Help – how to fix: Error Establishing a Database Connection in WordPress

 

This error can be a tricky one to address. If you’re really feeling unsure about it, I recommend contacting your website host in the first instance. If they’re any good (such as WP Engine or Flywheel), they should be able to help you. If you don’t get any joy there, be sure to check out WP Butler who offer awesome WordPress Support from $60 USD (or $99 AUD).

If you want to persist with troubleshooting yourself, brace yourself for what could be a reasonably quick fix, or one that will chew up considerable time! 

Whenever I’ve had to troubleshoot this issue, I’ve started with the awesome information on the WP Beginner website – they’ve covered everything so well I won’t rewrite my approach here, please check out their articles:

http://www.wpbeginner.com/wp-tutorials/how-to-fix-the-error-establishing-a-database-connection-in-wordpress/

http://www.wpbeginner.com/wp-tutorials/useful-wordpress-configuration-tricks-that-you-may-not-know/

Good luck!