Error establishing a database connection with Charter Business hosting
-
Hello everyone,
We’ve recently been working on redesigning a website for one of our clients in WordPress. I’ve been working on the proof of their site through our HostGator account/server and we are ready to move it over to the client’s host (Charter Business). I’ve had no issues with the site on our server and transferred all the files over the the client’s server. The new database is set up and the data has been imported from our site through phpmyadmin into the database.
The trouble I’m running into is that I’m getting the Error establishing a database connection message. Here is the complete message:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?I checked my wp-config.php file a couple times and the hostname, username and password are exactly as what is given to me in the Charter Business database setup:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘dbyyyyy_xxxx’);/** MySQL database username */
define(‘DB_USER’, ‘uyyyyy_xxxx’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘*********’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);I’ve tried the hostname as localhost, and also tried the one provided in the database setup: mysql52int.cp.charter-business.net. I tried allowing access to external hosts and it gives me an ip address to use. None of these have worked to connect to the database.
Is anyone else using the Charter Business hosting for their WordPress site and if so, have you been successful in getting WordPress connected to your database? Is there anything else I should look for or try to get the connection working?
Thanks!
- The topic ‘Error establishing a database connection with Charter Business hosting’ is closed to new replies.