1. Home
  2. Docs
  3. Malware Removal
  4. Troubleshooting
  5. PHP Error: Error establishing a database connection

PHP Error: Error establishing a database connection

Description: This error typically happens when your database password was modified and you haven’t updated your PHP scripts with the new password. It could also be that your database server is down and you’ll need to contact your hosting company to get it fixed.

Error example:

Error establishing a database connection

Post clean up: Update the password on the wp-config.php or contact your hosting company. If you are a Sucuri client and have any further question, please open a support ticket.

Was this article helpful to you?