

- #ERROR ESTABLISHING A DATABASE CONNECTION HOW TO#
- #ERROR ESTABLISHING A DATABASE CONNECTION PASSWORD#
Save the wp-config.php file and replace it with the current wp-config.php file in SFTP filemanagement by dragging it onto the file. These editors add hidden markup, which renders the wp-config.php file unusable.Įdit the information in the wp-config.php file ( DB_HOST, DB_USER & DB_NAME) so they match the information in your database overview. You do this by navigating to ' SFTP filemanagement' and selecting the wp-config.php file in the Don't open the wp-config.php file in advanced text editors, such as Microsoft Word. If the information in your wp-config.php file does not match the information on the ' Manage your database' overview in your control panel, you will need to edit the wp-config.php file.

To check this, head over to ' Domains & Hosting' in your control panel and select your domain name again. If you're still getting the ' Error Establishing a Database Connection' message after following the steps in ' Edit your database password', the other database credentials in wp-config.php may be the cause. The database connection should now be re-established and your website should be visible once more.Ĭheck the other credentials in the wp-config.php file
#ERROR ESTABLISHING A DATABASE CONNECTION PASSWORD#
Now enter the password you wrote down earlier and click on ' Save'. This time, click on ' Database'.Ĭlick on the database name of your WordPress website. Select your domain name on the left hand side and click on the cog wheel next to ' Your website'. Visit your control panel and head to the tab ' Domains & Hosting' again. Now click on the cog wheel next to ' Your website', followed by ' SFTP filemanagement'.Īlso see ' Creating and managing a database' for more information on using databases. Next, select your domain name on the left hand side (don't check the box). Log on to your control panel and head over to the tab ' Domains & Hosting'. To solve this, you can simply use the database password within wp-config.php as the actual password of your database. This happens when you've changed the database password in your control panel without changing the database password in your wp-config.php file. If the database login credentials within wp-config.php do not match the actual credentials of your database, you will see ' Error establishing a database connection' when visiting your WordPress website. Your WordPress website uses these credentials to connect to the website's database. Your WordPress website contains a configuration file ( wp-config.php) in which the login credentials of your database are stored.

#ERROR ESTABLISHING A DATABASE CONNECTION HOW TO#
This article tells you more about the cause of ' Error Establishing a Database Connection' and, most importantly, how to solve this error message.Īs we've mentioned, you are seeing this error because your WordPress website is unable to establish a database connection. It's possible the error message ' Error Establishing a Database Connection' is shown when visiting your WordPress website.Īlthough this error message may seem severe, it is actually fairly easy to solve. Essentially, it means your website is unable to connect to the database assigned to it.
