title: XAMPP phpMyadmin: Access denied after changing password
body: <p>Hi I know its an old question but I have tried many answers and guides but all in vain. I was using phpmyadmin without password on my local machine previously and I changed password using command prompt on windows with following command</p>
  <blockquote>
  <p>mysqladmin.exe -u root password root</p>
  </blockquote>
  <p>Since then I am not able to open my localhost/phpmyadmin and I get following error</p>
  <blockquote>
  <h1>1045 - Access denied for user 'root'@'localhost' (using password: NO)</h1>
  </blockquote>
  <p>I have tried changing config.inc.php current status of this file is as following</p>
  <pre><code>$cfg['Servers'][$i]['auth_type'] = 'config';
  $cfg['Servers'][$i]['user'] = 'root';
  $cfg['Servers'][$i]['password'] = '';
  $cfg['Servers'][$i]['extension'] = 'mysqli';
  $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'] = '';
  </code></pre>
  <p>I have tried changing password from localhost/security.php and changed password to <strong>123</strong>. I have also tried reseting root password by opening <strong>resetroot.bat</strong> batch file. I seriously think I have messed all up so if someone can help me here i shall be thank full. <strong>I am using Xampp on windows 7</strong></p>
  <p><strong>EDIT</strong> Also I would like to tell you that I have tried giving new password to</p>
  <pre><code>$cfg['Servers'][$i]['password'] = '';
  </code></pre>
  <p>And also to</p>
  <pre><code>$cfg['Servers'][$i]['controluser'] = 'pma';
  $cfg['Servers'][$i]['controlpass'] = '';
  </code></pre>
  <p>changing user to root</p>