24/7 U.S. Support – 877-595-4482
Database connection errors are one of the more common errors seen on a website. They also seem to cause a bit of panic. When you receive this error message, it means that the program is not communicating properly with the MySQL database service on the hosting server. This article will help you determine if the issue is your hosting server itself, or if you need to check the configuration settings for the connecting program.
We want to do a test known as the TelNet test. This allows us to test the server without going through the program that was giving the error. This way, we can tell if the MySQL database service is running on the server. Telnet is a network protocol that you will use to connect to the server directly.
If you get the response that indicates the MySQL service is indeed up and running, the next thing to check is whether the credentials the program is using match the server. You will need to know the database name, username, and password the server is expecting and the database name, username, and password the program is using to try and make the connection.
To find the credentials the program is using, look for the database settings found in your program files. If you are unsure where to find the database connection credentials for your program, you can check our configuration file location list for your particular program. Be sure you write down the location of the file and the database credentials you find.
After finding the credentials in the program, you want to see if they match the ones in the cPanel. To find the database information in the cPanel just follow these steps:
After ensuring the credentials are the same between the server and the configuration file, test your website again. If you are still receiving the database connection error, you will want to contact our Live Support team for further assistance.
|Email:||support@WebHostingHub.com||Ticket:||Submit a Support Ticket|
|Chat:||Click To Chat Now|