Site Down or Erroring
Error Establishing a Database Connection
Updated
Error establishing a database connection
What's happening
"Error establishing a database connection" means WordPress can't reach the database where all your content lives, so it can't build a single page and your site is down to visitors. Your pages, posts and settings are almost always still there; WordPress just can't open the door to them right now.
Why it happens
A handful of usual suspects: your hosting is overloaded or having a moment, the database is temporarily down, a recent change altered the database login details, or the database itself got corrupted. Most often it's a hosting-side issue or a configuration that got changed.
What you can safely try
- Wait two minutes and refresh — a brief hosting hiccup sometimes clears on its own.
- Check your host's status page or contact their support to see if there's a known outage.
- Don't start editing configuration files unless you really know what you're doing — that's where a small site-down problem can turn into a big one.
When to call us
If a refresh and a word with your host don't bring it back, this is exactly the kind of outage we handle. We find the real cause (overload, corruption, or a bad setting), fix it, get your site back online, and make sure a recent backup is in place.
Common questions
- Is my website data gone?
- Almost certainly not. This error means your site temporarily can't *reach* its database, not that the data is deleted. Once the connection is restored, your content is right where you left it — which is also why keeping a recent backup matters.
- Will this fix itself?
- Sometimes a brief hosting hiccup clears on its own in a few minutes. If it doesn't, the site stays down until the underlying cause is fixed — so it's not something to wait on for long.
Related terms
Want this fixed for you?
Emergency WordPress Fixes
From $149, flat rate. You approve the price before we start.
Not an emergency? Get a free audit of your site, done by a person, no obligation.