“Error establishing database connection” is an error message sometimes seen on WordPress sites. What this means is that your WordPress site has lost it’s connection to your WordPress database. This is often caused by a mismatch between the database password WordPress is using and the database itself.
The database settings in your site’s wp-config.php file need to match your database credentials to be able to connect. Here is an example of the database settings from wp-config.php:
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
If your site is part of a ReachONE UpTime hosting package, then the “Error establishing database connection” may have been caused by changing your administrator’s password in the UpTime web interface. By default, your database password is tied to your administrator account password. You can change this behavior by going to the “Edit Database” link on the left hand side of the page, click on the “Passwords” tab on the right. Choose “Custom Password”.
Correcting the issue:
Update your database settings in your site’s wp-config.php file to match your database credentials
If your website is not hosted on UpTime, or is not a WordPress site, you may still see this error message if your site cannot connect to your database. Make sure the CMS (Content Management System) or other hosting product you are using has the correct database settings in the appropriate configuration file. If this does not resolve the issue for you, or if you have additional questions, please contact the ReachONE support team.