title: MacOSX homebrew mysql root password
body: <p>For some reason MySQL stopped giving access for root. Uninstalled and reinstalled with Homebrew. Fresh install, fresh tables but when I enter</p>
  
  <pre><code>mysql -u root -p
  </code></pre>
  
  <p>I get this error:</p>
  
  <blockquote>
    <p>Access denied for user 'root'@'localhost' (using password: NO)</p>
  </blockquote>
  
  <p>I reinstalled MySQL five times but it is still asking for a password. How do I fix this?</p>