title: MAMP Error: checking MySQL databases failed
body: <p>I recently reset the password from the root user in MySQL to a blank value. I verified in the config.inc.php file that this was the case:</p>
  
  <pre><code>$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
                                                      // with 'config' auth_type) 
  </code></pre>
  
  <p>However, every time I restart the MAMP servers, this error pops up: </p>
  
  <blockquote>
    <p><strong>Checking the MySQL databases failed</strong></p>
    
    <p>Error message:</p>
    
    <p>/Applications/MAMP/Library/bin/mysqlcheck: Got error: 1045: Access
    denied for user 'root'@'localhost' (using password: YES) when trying
    to connect</p>
  </blockquote>
  
  <p>However, I can still connect to my MySQL database perfectly fine through MySQLWorkBench. It's just that this silly error pops up every time, even though I don't have a password set. Why does this keep happening? </p>
  
  <p>I've tried everything from restarting MAMP to resetting my password from the command line (<a href="https://www.mamp.info/en/documentation/#q9" rel="nofollow">the solution in the MAMP docs</a>), to no avail. I also tried executing the following: </p>
  
  <pre><code>$ /Applications/MAMP/Library/bin/mysql -uroot -p
  Enter password: 
  Welcome to the MySQL monitor.  Commands end with ; or \g. 
  ...
  mysql&gt;
  </code></pre>
  
  <p>So I can successfully connect to MySQL through the terminal. Does this mean that the problem is in my phpMyAdmin configuration somewhere? </p>