Support » Fixing WordPress » Error establishing a database connection

  • Resolved carburetor


    Last night I go to sleep and my site is fine. This morning I get the error message below when I go to

    Has this ever happened to anyone else?


    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 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?”

Viewing 10 replies - 1 through 10 (of 10 total)
  • By the way, I get the same error message when I try to login to my WP account.

    Mark (podz)


    Support Maven

    Email your host – if it was working, and you are sure you didn’t break it, then they did 🙂

    If you didn’t do anything to your site, the only thing you can do contact your host.

    Additionally, I don’t know where the “eggflesh” came from.


    Thanks! I’ll do that.

    Strange. It’s back up.
    I checked the MYSQL settings on my server and everything seemed to add up. I go back to my site and it’s there.
    Thanks for replies.

    FYI: For anyone who’s site is hosted by DreamHost, there was a 3 hour interuption this morning-indicated by the message I recvd. See below.

    “I have investigated this problem and it appears your database server,
    heathcliff, experienced around a 3 hour interuption of service. I’m very
    sorry for this extended outage, the server failed in a way which let our
    network monitoring software connect to the databases and run a test
    query, but not let your websites connect.

    I have alerted our system administrators to this abnormal failure, and
    will continue to monitor the server throughout the day for similar
    problems. Please let us know if your website is still not working, or if
    this proble surfaces again.”

    I’m having the exact problem, and I just installed mine. I don’t seem to be having any problems with my site otherwise, and my information all checked out…any ideas?

    Contact your Host right away. They need to know about it. I don’t think it’s a problem on WordPress’ side.
    If your host is DreamHost, they’re very quick at responding.

    Thanks, I contacted them.

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