title: mysql on osx: access denied and can't connect to socket
body: <p>I can't seem to figure out what I have to do in order to install/setup mysql correctly on my new mac. </p>
  
  <p>1.) I installend <strong>mysql</strong> via <strong>homebrew</strong></p>
  
  <p>2.) I'm able to run <code>mysql.server start</code></p>
  
  <p><a href="https://i.stack.imgur.com/TMUJO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TMUJO.png" alt="enter image description here"></a></p>
  
  <p>3.) If I try to run <code>mysql -u root -p</code> I get this</p>
  
  <pre><code>ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  </code></pre>
  
  <p>I googled and looked through all kind of sources, but can't seem to figure out what to do.</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p><a href="https://i.stack.imgur.com/pbDZI.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pbDZI.png" alt="enter image description here"></a></p>
  
  <p>Update 2:</p>
  
  <p><a href="https://i.stack.imgur.com/HeDkX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HeDkX.png" alt="enter image description here"></a></p>