title: #2002 Cannot log in to the MySQL server
body: <p>I am working on a windows server 2012 and trying to get PHPMyAdmin working.  I cant get it to connect to the MySQL by root user or a non root user.  I have searched and searched all over google. everywhere I saw it said to set allowroot and change localhost to 127.0.0.1 in the config.inc.php file. At first I could not find this file but then I read you have to change config.default.php to it and put it in the root folder.  I did that. and here is what I changed</p>
  
  <pre><code> $cfg['Servers'][$i]['host'] = "127.0.0.1"
  //already had the next one set
  $cfg['Servers'][$i]['AllowRoot'] = true
  </code></pre>
  
  <p>I still cant get it to login from any user on MySQL, and I keep getting the error</p>
  
  <pre><code>#2002 Cannot log in to the MySQL server.
  </code></pre>
  
  <p>config.inc.php: <a href="http://u16626886.onlinehome-server.com/config.inc.zip" rel="nofollow">http://u16626886.onlinehome-server.com/config.inc.zip</a></p>
  
  <p>Testing PHP and MySQL: <a href="http://u16626886.onlinehome-server.com:801/test.php" rel="nofollow">http://u16626886.onlinehome-server.com:801/test.php</a></p>
  
  <p>I figured out the problem just need to solve it now.  If I put MySQL on the C: drive it works fine but if I put it on the D: drive, which is where I want it, PHP can not connect to it.  Does anyone know why that is?</p>