• Resolved xiaozhu

    (@xiaozhu)


    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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I would wait for the server host to reply or try to connect to the database yourself via your control panel assuming you have cpanel. maybe create a new db user and password and try that.

    Thread Starter xiaozhu

    (@xiaozhu)

    Thanks for your reply,

    I did try to create a new user with full access and modified the wp_config accordingly. Didn’t work and I got the same error message.

    My hosting company has yet to reply. On the forum, some has said my website could have been hacked… and to be honest, I really don’t know how to address the issue.

    Thread Starter xiaozhu

    (@xiaozhu)

    Solved. A nice soul on a forum asked my hosting company to restart MySQL and it solved the problem.

    i’m having this problem now is Godaddy your host?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error establishing a database connection?’ is closed to new replies.