Fix “Error establishing a database connection”

This error commonly means the application cannot connect to its database.

  1. Check whether other pages and applications on the hosting account are affected.
  2. If you recently changed database credentials, restore the correct database name, username, password and host in the application's configuration. For WordPress, these are typically in wp-config.php.
  3. In cPanel, check that the database exists and the configured user has the required privileges.
  4. Check whether the hosting account has exceeded resources or the database service is unavailable.
  5. Restore a known-good backup only if you understand what will be overwritten.

Do not publish database credentials in screenshots or support tickets. If the issue started without changes, open a ticket with the site URL and approximate start time.

  • database, wordpress, mysql, error
  • 0 Benutzer fanden dies hilfreich
War diese Antwort hilfreich?

Verwandte Artikel

Troubleshoot a 500 Internal Server Error

HTTP 500 means the server could not complete the request; it does not identify one unique cause....

My website will not open: basic connection checks

  Confirm the exact domain spelling and try both https:// and http:// to distinguish redirect...

Emails are not arriving or are landing in spam

First determine whether the problem affects sending, receiving, or both. Send a test to another...