I already had this issue on my Windows 2008 Server and I was able to solve it the following way:
- Add 127.0.0.1 localhost to Windows hosts file
- Add skip-name-resolve to my.ini
It's very weird that on Windows Server 2012 (IIS8) these tricks don't help.
Creating a connection using PHP/MySQLi to MySQL needs 1 seconds when using localhost as server name, to 127.0.0.1 it needs 0.0001 seconds.