WordPress.org

Ready to get started?Download WordPress

Forums

Database Error When Attempting to Open Site (10 posts)

  1. youdamom
    Member
    Posted 6 years ago #

    I just tried to open my site and received this 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?

    Yesterday, I backed up my database, and I'm afraid that somewhere along the way, I caused this error. I followed the WP steps to backing up, and didn't mess with anything else. I don't understand why I can't open my site now. Please help...Thanks!

  2. shadow
    Member
    Posted 6 years ago #

    You MUST have the wrong information in your config file. Check that first.

  3. youdamom
    Member
    Posted 6 years ago #

    Can you tell me how to do that? Thanks!

  4. shadow
    Member
    Posted 6 years ago #

    Just thinking - how did you backup your database?

  5. youdamom
    Member
    Posted 6 years ago #

    i followed the exact steps provided by wp here:

    http://codex.wordpress.org/Backing_Up_Your_Database

    i know have the TXT file on my desktop.

  6. youdamom
    Member
    Posted 6 years ago #

    when i look at the wp-config.php file through my control panel, it has the right username and password. is that how and what i am looking for?

  7. shadow
    Member
    Posted 6 years ago #

    If you would like to email me, I will take a look at your database and see what we can find.

    shadow12 gmail

  8. youdamom
    Member
    Posted 6 years ago #

    Thanks for all your help.

  9. mregnerphoto
    Member
    Posted 6 years ago #

    I am getting this same error when I try to open my blog. When I open wp-config, the username, password, database, etc fields are empty and are telling me to input them.

    Anyone?

  10. shadow
    Member
    Posted 6 years ago #

    Have you set up your config file and uploaded it to your site?

Topic Closed

This topic has been closed to new replies.

About this Topic