I am running Windows Server 2012 R2 trying to host a Drupal site. Because it is Drupal, I am trying to connect to a MySQL server rather than a MSSQL server. I created a new schema as well as a new user and I gave the new user a password. When I try to setup Drupal and connect to the server with a password, I get this response:
SQLSTATE[HY000] [1045] Access denied for user 'multi_beta'@'localhost' (using password: YES).
When I try connecting without a password I get this response:
SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'multisite_beta'.
What is bizarre is that even though I set a password for the account, when I log on using those credential via command line, if I don't use a password it works, while if I do use a password it doesn't. I know I'm using the correct password.
This is the second time this has happened to me and the only solution the first time was to wait it out. I tried changing the password, using different user names, trying difference schemas, using dashes instead of underscores, specifying the port, restarting the server, but nothing has solved it. Is there something wrong with my server configuration? Am I missing something blatantly obvious?