Fix error establishing database connection

This means that the website can not access the database that is assigned too. To fix it try:

  • Check error logs first: /usr/local/cpanel/logs/error_log
  • Incorrect login credentials. Database password has been changed but the password in "/public_html/configuration.php" or "/public_html/wp-config.php"  has not been changed. This depends on what website platform you are using.
  • Corrupted database

Try uploading the old database from the backup, if the problem still occurs contact support.

  • errors, database, connection, webiste
  • 1050 Users Found This Useful
Was this answer helpful?

Related Articles

I Can't Login To My cPanel

All our accounts have cPanel account automatically created when a hosting account is created with...

How to Check Your Website's Error Log

There are two options for how errors can be checked:   Option 1: Login to cPanel Click File...

You have an error in your SQL syntax

You have an error in your SQL syntax, is an issue with SQL syntax and in cases by: Reserved...

My cPanel won't load or keeps logging me out after enabling Cloudflare

Please note that If you change the nameservers and you use the ones from some of...