24/7 U.S. Support – 877-595-4482
If database settings have not been configured properly for software, errors can occur. Two common errors are:
In this article we'll go through the reasons for each of these errors and how to resolve them.
To resolve this error, check the following settings in your configuration file and correct as needed. You can edit your configuration file with the cPanel File Manager:
Hostname: localhost
database name: Make sure this is the full database name which will include your cPanel user name as a prefix (e.g. userna5_mydatabase)
database username: Make sure you are using the database user assigned to the database, and not just the cPanel username (e.g. userna5_databaseuser).
password: Make sure this is the password for the database user assigned to the database.
If needed, you can change the password for your database user.
Once you have corrected the database settings as needed, refresh your website in your browser to make sure the error has been resolved.
This error is caused by the cPanel username being used in the configuration file instead of a database username.
You may see something similar to the following in your configuration file:
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'userna5');
define('DB_PASSWORD', '[previous cpanel password]');
define('DB_DATABASE', 'whhsup5_mydatabase');
define('DB_PREFIX', '');
Using the cPanel username instead of a database user in a configuration file will cause this error any time the cPanel password is changed. Fortunately, this is easy and quick to fix. Edit your configuration file and replace the cPanel user name and password with the database username and password for your database.
If you did not create a database user when you created your database, you will want to create a new database user and assign it to your database.
Once you have edited your configuration file, the database settings should look similar to:
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'whhsup5_mydbuser');
define('DB_PASSWORD', '[new database user password]');
define('DB_DATABASE', 'whhsup5_mydatabase');
define('DB_PREFIX', '');
Refresh your website in your browser and your error should be resolved.
If you have any trouble resolving either one of these errors, please feel free to contact our Support Department for assistance.
| Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
|---|---|---|---|
| Call: |
877-595-4HUB (4482) 757-416-6627 (Intl.) |
Chat: | Click To Chat Now |
Copyright © 2013 Web Hosting Hub - Privacy Policy - Terms of Service
I need another troubleshooting solution.