This error means WordPress can't reach the database that holds your content, so no page can load. Your data is almost always still there.
What it means
WordPress stores every page, post, and setting in a database. When it can't connect to that database - wrong credentials, a crashed database server, or a hosting hiccup - every page fails with this error instead of loading.
Why it happens
The usual causes are a database server that restarted or ran out of resources, a password that changed without updating wp-config.php, or a hosting account issue like suspension or a server migration gone wrong.
A real example
A dental practice's site went dark on a Monday morning right as patients started searching for appointments. The host's database server had crashed overnight - nothing was wrong with WordPress itself. Within an hour the host restarted the database and the site came back on its own. The lesson most owners learn here: this error is a symptom, and the fastest diagnosis is asking your host whether their database is up before touching a single file.
What to do
- Check whether it's just you - try loading the site on your phone using mobile data.
- Contact your host first. If their database server is down, there's nothing to fix on your site.
- If the host says their side is fine, check wp-config.php database credentials against what your host provides.
- Look for a recent change - a plugin update, a host migration, or a wp-config edit are the usual suspects.
Still stuck? If the site is down and you can't tell whether it's the database or something else, an emergency fix starts with diagnosis - we isolate the cause before touching anything.
Get emergency help