What Does 'Error Establishing a Database Connection' Mean?
WordPress stores everything in a database. This message means the site cannot reach it right now.
WordPress keeps your posts, pages, settings and users in a database. Every page view asks that database for the content. When the database does not answer, WordPress cannot show anything, so it shows this message instead of your site.
What it does not mean
- Your content is not deleted. In most cases the data is still safe in the database.
- You have not necessarily been hacked.
- It is not a problem with your visitors' browsers or internet.
The usual causes
- Wrong login details in
wp-config.php, often after a password reset or a site move. - The database server is down or overloaded. This often fixes itself within minutes, and it is more common on busy shared hosting.
- Damaged tables, sometimes after a crash or a failed update.
- The account hit a limit, such as disk space or database connections.
Step 1: Reload after a minute or two

Short database outages often clear by themselves.
Step 2: Check your host's status page

If the database server is down, wait for the host to fix it.
Step 3: Take a backup from your host panel

Do this before you change anything.
Step 4: Follow the full checklist

Our full checklist goes through the login details, the database and repairs in order.
Do not
Do not reinstall WordPress or delete the database before checking, because that can remove your content. Take a backup from your host panel first if you can.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist