Error establishing a database connection?
-
Hi,
Since last night, I’m getting the following error message when accessing my blog:
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.
Here are the steps I took:
1) Was creating a new page archive for my blog
2) Refreshed my blog and saw the error page.
3) Assumed it could be the latest change I made in my archives and reverted to previous php file via FTP (I always have backups).
4) Still didn’t work.
5) Logged into Site5 admin interface to see if any server were down. Everything was up.
6) Checked my wp_config file. I haven’t changed it since I set up the blog but I double-checked. Everything looked fine.
7) Google around to see what the problem could be. A lot of people seemed to have the problem when they first set up WordPress because they input incorrect info. For others like me who already have a running blog, the problem was almost always on the server side.
8) Still waiting for a reply from my hosting company…Here is the relevant part of my wp_config file:
<?php
// ** MySQL settings ** //
define(‘DB_NAME’, ‘correres_wrdp1’); // The name of the database
define(‘DB_USER’, ‘correres_Xiaozhu’); // Your MySQL username
define(‘DB_PASSWORD’, ‘*****’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);Now, any idea what the problem might be?
Thanks!
- The topic ‘Error establishing a database connection?’ is closed to new replies.