Site Down or Erroring
Error Establishing a Database Connection
Error establishing a database connection
What's happening
Your whole site is showing one line: "Error establishing a database connection." That means WordPress can't reach the database where all your content lives — your pages, posts, settings, everything. The data is still there; WordPress just can't open the door to it right now, so it can't build a single page. To visitors, your site is simply down.
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 quick word with your host don't bring it back, this is exactly the kind of outage we handle — fast. We find the real cause (overload, corruption, or a bad setting), fix it, and get your site back online, with a clean backup so it can't bite you twice.
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