WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Error Establishing a Database Connection (5 posts)

  1. Sveetly
    Member
    Posted 1 year ago #

    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.

  2. Could be firewalled. Look in your error logs.

  3. Sveetly
    Member
    Posted 1 year ago #

    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?

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

  5. Sveetly
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic