• I know that this is a super common problem and I’ve been through other posts trying to fix it but nothing has worked so far. I’ve setup a dozen WordPress sites, had this error a few times before and was always able to fix it but this time I can’t.

    I quadruple checked my database info, username and password. Even cleared it all out and set up a new database, username and password. I deleted all of the wordpress files and loaded it back in from scratch twice with different database info, still not working. I have four other WordPress sites hosted through the same database server and they’re all still working fine. I thought it might be something with the WP version since I haven’t done a fresh install with the newest version so I even tried going back and installing an older version of WP that I had the files for. Didn’t make a difference.

    Anyone have some ideas for me? Not sure why I can’t get this site to install.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    You are getting this error because WP is unable to establish a database connection. Reason why WP is unable to establish a database connection can vary. It could be that your database login credentials are wrong or have been changed. It could be that your database server is unresponsive. It could be that your database has been corrupted. Also, there could be other factors as well.
    To troubleshooting this problem:
    – double check your wp-config.php file settings for the database name, database username and database password, and the host name (e.g., “localhost” Vs. something else). This is where most errors occur.
    – Then make sure wp-config.php is in right location.
    – Then check that you don’t need to change the database host from “localhost” to something else. You can get that info from your hosting provider.
    – Check you have actually created a database with the same database name as is in your wp-config.php file.
    – Last, but not least, if all that information is correct your database probably has a problem with it. Contact your hosting provider if the database server is offline (if the problem suddenly happened), or if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, or if the hosting package is set to Windows and not Linux, etc.
    – There are also many threads on this topic on these forums: http://wordpress.org/search/Error+establishing+a+database+connection?forums=1

    Thread Starter geekstudio

    (@geekstudio)

    Did you read my post at all, Tara?

    I addressed all of the things you mentioned. Please read my post and let me know if you have any other ideas. Thanks.

    Moderator t-p

    (@t-p)

    Did you read my post at all, Tara?

    ask for money back!

    There is nothing different about how the database connection is set up in at least the last 10 or so versions, so there hasn’t been any new “tricks” introduced that would cause something like this.

    If you are sure that it’s all correct then you have to talk to your hosting company and find out why it’s not working. They are the only ones that will be able to tell you if anything is different for that particluar account.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Error Establishing Database Connection"’ is closed to new replies.