WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (3 posts)

  1. crstn_savu
    Member
    Posted 8 years ago #

    Hy everybody... I have an site and I want to install
    Wordpress on it and when I enter on http://www.retromobil.lx.ro/wordpress/index.php it shows me this error

    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.

  2. narc
    Member
    Posted 8 years ago #

    I have the same error on my blog (www.movienarc.com). My site has been working fine for months, then all of a sudden I got the same error you did.

    Someone told me I could add some code to get a more informative error, so I did (to wp-includes/wp-db.php add echo mysql_error(); before $this->bail). Now I see the error is related to a user/password. So, going into mysql I notice the user, for whatever reason, was gone. I added the user back...but I still get the error.

    I'm in the same boat as you now. Getting that error and don't know how to fix it.

  3. Servant
    Member
    Posted 8 years ago #

    Perhaps your situation is different, but I've had this happen a couple of times where the resolution was contacting my host provider. They re-started MySQL and the issue was resolved. Hope this helps...

Topic Closed

This topic has been closed to new replies.

About this Topic