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.