WordPress.org

Forums

[resolved] [closed] Error establishing a database connection (10 posts)

  1. tom2013
    Member
    Posted 2 years ago #

    Can't get into website. Keeps comming up with the error "Error establishing a database connection" Any Ideas/ Remedies welcome.

    Thanks
    Tom Lewis

  2. That error only means one thing: database connection detials are wrong. See Editing wp-config.php « WordPress Codex

    If that error appeared without you doing anything, ask your host if the database server is running OK.

  3. patel198829@yahoo.com
    Member
    Posted 2 years ago #

    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?

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    @patel198829@yahoo.com: As per the Forum Welcome, please post your own topic.

  5. tom2013
    Member
    Posted 2 years ago #

    Thanks Folks for your replies. The information that you have provided helped. We are currently working with our web host to resolve the problem. Hope to be back up and running soon.

    Thanks Again

    Tom

  6. kpalaniswamy
    Member
    Posted 2 years ago #

    Hi Tom,

    I have the same issue. I did create password for user in phpmysql database. but, I forgot to add password in wp-config file. Check this one. hope it helps.

    Thanks,

    Karthikeyan Palaniswamy
    [Signature moderated]

  7. Andrew
    Forum moderator
    Posted 2 years ago #

    @kpalaniswamy,
    Regardless of how similar your symptom may be, you should create your own thread out of courtesy.

  8. tom2013
    Member
    Posted 2 years ago #

    Thanks again everyone for you feedback. Come to find out after talking to our host that they had added/switched servers and had failed to point our site and others to the new server. Everything is back to normal now.

    Thanks again for your help

    Tom

  9. Hammad100
    Member
    Posted 1 year ago #

    Hi

    wordpress giving database connection error....help

  10. WPyogi
    Forum Moderator
    Posted 1 year ago #

    @Hammad100 - if you need help, please start a new thread - this one is outdated and already marked resolved, so it's not a good place to get help. See this: http://codex.wordpress.org/Forum_Welcome#Where_To_Post

    You can start a new thread here:

    http://wordpress.org/support/forum/how-to-and-troubleshooting#postform

Topic Closed

This topic has been closed to new replies.

About this Topic