Support » Installing WordPress » Error Establishing a Database Connection

  • Resolved Sveetly

    (@sveetly)


    I have been trying to install WordPress, but I get the error, “Error establishing a database connection”. I realize this is a common error, but after a few hours, I haven’t found any solutions that work in my case.

    I’ve tried uninstalling WordPress, phpMyAdmin, MySQL, and PHP, rebooting, and starting from scratch. I tried clean installing from tutorials for everything.

    I am running Windows Server 2008 R2, fully updated, with IIS7.

    Nothing can access MySQL, except the command line, and applications like HeidiSQL. phpMyAdmin cannot access it, either.

    I tried installing WordPress first manually, using the “five-minute setup” method, and also using the Web Platform Installer setup. It said that it installed successfully (and the installer made a database, and a user/password for WordPress), however, when I opened the URL, it doesn’t work and just gives me the error, “Error establishing a database connection.”

    I’m really lost as to what could be wrong. Since it can be accessed with applications/command line, but not through the browser, it seems like it could be a permissions issue, but I couldn’t manage to fix it, though maybe I don’t know all the directories it needs permissions for.

    I am running PHP 5.3.20, MySQL 5.5, and WordPress 3.5.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    Could be firewalled. Look in your error logs.

    I just checked both the internal and external firewall. Everything is open for port 3306, which is what I configured MySQL to use. I checked the server’s logs, and I can’t find any relevant errors in requests for my WordPress directory.

    Any idea besides a firewall that could be stopping all requests, even for localhost, from reaching MySQL?

    Moderator Mark Ratledge

    (@songdogtech)

    Forum Moderator

    This is really a Windows server problem and not specifically WordPress. I’d try http://serverfault.com/

    Alright, thank you. And thanks for directing my somewhere I should be!

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