Error Establishing a database connection
-
I’m probably the 438249329th person to have this problem, but I had the following on my install.php page when I was going through the installation guide:
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?
If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.I have called my host several times to verify that everything is correct. One tech guy told me that if I was able to connect to the database through the Primus MyAccount Portal, then the connection of the database is fine, and that my username and password are correct. I even asked at least 3 times concerning the database name, username and MySQL host name. I did reset to a new password, but if I can get to the database using this new password, why is this message still coming up?
A question on the side:
In the installation guide, there’s numerous lines of code that they suggested to add to the config.php page. If I didn’t add all of it, does it affect whether or not the error page comes up? I wouldn’t think so, but I’ve never used WordPress before, so I want to make sure.
- The topic ‘Error Establishing a database connection’ is closed to new replies.