title: Changing the MySQL password for MAMP
body: <p>I'm trying to change the current password for the root user for MAMP but I keep getting "Access denied!"</p>
  
  <blockquote>
    <p>phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.</p>
  </blockquote>
  
  <p>I completely installed MAMP from scratch and with the default root username and password everything worked fine.</p>
  
  <p>I then changed the password using terminal and the following command</p>
  
  <pre><code>/Applications/MAMP/Library/bin/mysqladmin -u root -p password newpassword
  </code></pre>
  
  <p>I also flushed privileges and then restarted the MAMP server.</p>
  
  <p>With the new password I can successfully log into SQL from the terminal, but I can't get phpMyAdmin to work unless I change the password back to 'root'.</p>