Home / Questions / What does error establishing a database connection mean in WordPress?

What does error establishing a database connection mean in WordPress?

This error means WordPress cannot reach its database, so the whole site stops. The most common causes are wrong database details in wp-config.php and a full disk.

Error establishing a database connection means WordPress tried to reach its database and failed. Every page depends on that link, so the site and the admin login both stop working.

Where to look first

WordPress reads the database name, user, password and host from the wp-config.php file. If any of the four is wrong after a move or a password change, you get this error. Compare them with the details in your hosting panel.

Ready to act on this?

Get a written review of your site, or send us your question and we will reply within 24 hours.

Other common causes

  • The database server is down or overloaded for a short time.
  • The hosting account has run out of disk space.
  • A table is damaged after a crash.

For step-by-step fixes, read our guide on common WordPress errors and fixes. If the details are correct and the error stays, ask your host whether the database server is running.

Related services

Not sure where your site stands?

Send us the details and we will reply within 24 hours with a clear next step.