After suspension, my databases are not working

If you are getting the following message; "Error establishing a database connection", this is a cPanel bug in their 11.24.x release. Below, we have outlined how to resolve this issue:

    * Find the configuration file of your database driven application (normally within the /public_html folder)
    * Inside the configuration file (the file maybe called things like: wp-config.php, configure.php, config.php, configuration.php, etc…), you will see something that looks like this:

          $database = "";
          $dbusername = "";
          $dbpassword = "";
          $dbhost ="localhost";

    * You will need to copy the "dbusername" and "dbpassword" from this configuration file.
    * Then, please login to cPanel, and click on "MySQL"
    * Next, we need to scroll down to "add new user"
    * Input the SAME username and password and click "add new user"
    * Your site will load now without any problems.

The above will fix the issue with the database connectivity that you have been having.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I modify the inbox size within cPanel?

When you successfully create mail account in cPanel, the default quota will be assigned to the...

How do I block an IP address using cPanel?

If you want to prevent an IP address or a whole range of IP addresses from accessing your site,...

Does my hosting account have a file count (inode) limit?

All hosting accounts / providers have some sort of file count limit. The file count limit to...

How do I obtain Raw Access Logs?

Raw Access Logs are logs that are going to give you the most information about your sites...

How do I enable SSI?

Enabling SSI (Server Side Includes) isn't complicated. However, there a few things that you need...