title: Resetting root pw for mySQL
body: <p>I found some instructions online but running into an error:</p>
  
  <p>Following this - <a href="https://stackoverflow.com/questions/6474775/setting-the-mysql-root-user-password-on-os-x">Setting the MySQL root user password on OS X</a></p>
  
  <p>I ran </p>
  
  <pre><code>sudo mysqld_safe --skip-grant-tables
  </code></pre>
  
  <p>The results were:</p>
  
  <blockquote>
    <p>2017-06-28T15:22:12.6NZ mysqld_safe Logging to
    '/usr/local/var/mysql/Morgans-iMac.local.err'. 2017-06-28T15:22:12.6NZ
    mysqld_safe Starting mysqld daemon with databases from
    /usr/local/var/mysql</p>
  </blockquote>
  
  <p>So it looks like it is running. However when I type in (in a new window):</p>
  
  <pre><code>mysql -u root
  </code></pre>
  
  <p>I get the error:</p>
  
  <blockquote>
    <p>ERROR 2002 (HY000): Can't connect to local MySQL server through socket
    '/tmp/mysql.sock' (2)</p>
  </blockquote>
  
  <p>What am I doing wrong? Is this a pathing problem?</p>