Support » Fixing WordPress » error establishing a database….

  • The “error establishing a database connection” error occurred for no apparent reason initially.

    I double checked the config file, I double checked the .htaccess, I uninstalled all plugins and and the error still occurred.

    I then went on to completely uninstall and reinstall WordPress. The error is still occurring.

    Please HELP!?!? the site has been down for days now.

    thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Hello,

    Usually, this happens when you’re using your cPanel main username and password to access your database. Then, you change your cPanel password but the one in your wp-config.php stays the old one thus causing the issue.

    Basically, you should check these:

    – your database name
    – your database username
    – the password for that username
    – whether that username has full privileges for the database
    – the MySQL hostname (should be localhost, but if that has changed it could cause the error too)

    Check these one by one and you’ll have your site up and running 🙂

    Thread Starter AbsurdPress

    (@absurdpress)

    Thanks Hristo,

    Is there anything else it can be, I triple checked all of these and I still have nothing.

    thanks

    Thread Starter AbsurdPress

    (@absurdpress)

    Nope! I apologize, the host name was wrong somehow…??

    I don’t know how it would have ever changed… but it did.

    Hristo Pandjarov

    (@hristo-sg)

    SiteGround Representative

    Great, I’m glad you had this solved 🙂

    Just wanted to say thanks as well, also solved my probl.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘error establishing a database….’ is closed to new replies.