What this usually means
- The database name, user, password or host in wp-config.php is wrong or has changed
- The database server is down, overloaded or out of space
- The database user has lost its permissions
- The database is corrupted
Steps to fix it
Check your host first
Look at their status page and ask whether the database server has a problem.
Compare your details
Open wp-config.php and check DB_NAME, DB_USER, DB_PASSWORD and DB_HOST against your hosting panel.
Test the connection
Try logging in to phpMyAdmin or your host’s database tool with the same details.
Repair only if needed
If tables are damaged, WordPress has a repair tool. Turn it on, run it, then turn it off straight away.
define( 'WP_ALLOW_REPAIR', true );
When to get help
If the details are correct and your host says the database is up, or you suspect corruption, send us the details. Don’t send passwords, we’ll arrange secure access.