title: MAMP and PHPMyAdmin: #1045 - Access denied for user 'root'@'localhost' (using password: YES)
body: <p>I have MAMP installed and I've never had a problem with it. Today I tried logging in to PHPMyAdmin and I got the following error message:</p>
  <blockquote>
  <h1>1045 - Access denied for user 'root'@'localhost' (using password: YES)</h1>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/RvjNl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RvjNl.png" alt="enter image description here" /></a></p>
  <p>In my config.inc.php file, the following options are set:</p>
  <pre><code>$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  $cfg['Servers'][$i]['password']      = 'root';
  </code></pre>
  <p>I've never changed my password. This is a local install, so I've always used 'root' for username and password.</p>
  <p>I've tried accessing MySQL through the terminal:</p>
  <pre><code>/Applications/MAMP/Library/bin/mysql
  </code></pre>
  <p>But I get this:</p>
  <pre><code>ERROR 1045 (28000): Access denied for user 'boneill'@'localhost' (using password: NO)
  </code></pre>
  <p>Not sure what could have happened. I haven't changed passwords or anything like that. It just stopped working all of a sudden. Any ideas?</p>