title: XAMPP PhpMyAdmin Error 1045, "Access denied for user 'root'@'localhost'
body: <p>I see this question has been asked many times, but I don't find a solution for my problem. Tried all possible combinations in <code>config.inc.php</code></p>
  
  <pre><code>$cfg['Servers'][$i]['auth_type'] = 'http';
  $cfg['Servers'][$i]['user'] = 'root';
  $cfg['Servers'][$i]['password'] = 'root';
  $cfg['Servers'][$i]['extension'] = 'mysql';
  $cfg['Servers'][$i]['AllowNoPassword'] = true;
  $cfg['Lang'] = '';
  
  /* Bind to the localhost ipv4 address and tcp */
  $cfg['Servers'][$i]['host'] = 'localhost';
  $cfg['Servers'][$i]['connect_type'] = 'tcp';
  
  /* User for advanced features */
  $cfg['Servers'][$i]['controluser'] = 'pma';
  $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  </code></pre>
  
  <p>I installed XAMPP. In PhpMyAdmin I modified the password of <code>root@localhost</code>. I am able to login to PhpMyAdmin using the new password.</p>
  
  <p>But when I Add a new user Drupal as per drupal installation steps, I get this error:</p>
  
  <pre><code>Error 1045, "Access denied for user 'root'@'localhost' (Password: YES)
  </code></pre>
  
  <p>But still the drupal user gets created but the drupal database in mysql doesnt get created.</p>
  
  <p>When I try to create drupal database separately I am able to do it.</p>
  
  <p>Apart from this I tried <code>MySQL.exe -u root -p</code>. It works fine there, so I am not sure.</p>