title: MySQL - Mac - Error 2002 - Can't connect to local... through socket
body: <p>I had MySQL running fine on my Mac till earlier today when I installed homebrew and also updated my Path.</p>
  
  <p>When I try to run mysql from my ternimal window now, I get the following error:</p>
  
  <pre><code>ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
  </code></pre>
  
  <p>I can't connect MySQLAdmin either.  </p>
  
  <p>I can't even run Mysqld.  The error I get when trying to run mysqld is that it can't create test file.</p>
  
  <p>I also tried to telnet localhost 3306 and wasn't able to connect.</p>
  
  <p>Any help would be appreciated as I am fairly new to Mac.</p>