Skip to content

"Error establishing a database connection" Print

  • database, connection, wordpress, error
  • 3

Your website cannot reach its database. Usually the settings in the website's configuration file do not match the database.

  1. Find the database name, user and host (localhost) in Connection Info.
  2. Open the website's configuration file in the File Manager. For WordPress this is httpdocs/wp-config.php: check DB_NAME, DB_USER, DB_PASSWORD and DB_HOST.
  3. If you are not sure of the password, set a new one for the database user in the control panel and put the same one in the file.

If the details are right and it still fails, the database may be damaged. In Databases, click Check and repair, or open a ticket.


Was this answer helpful?

« Back