title: MySQL (mysql_secure_installation) won't work after installing through homebrew: Can't connect through socket
body: <p>When just installing mysql on OSX through homebrew like so: <code>brew install mysql</code> and I try to run the command <code>mysql_secure_installation</code> as brew suggests, it just gives me the following error:</p>
  
  <blockquote>
    <p>Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)</p>
  </blockquote>
  
  <p>I tried ALL SOLUTIONS from this thread: <a href="https://stackoverflow.com/questions/15016376/cant-connect-to-local-mysql-server-through-socket-homebrew">Can&#39;t connect to local MySQL server through socket homebrew</a></p>
  
  <p>But alass nothing solved my problem. Any advice to debug?</p>
  
  <p>When I try to check the existance of the socket file:<br>
  <code>ls -al /tmp/mysql.sock</code><br>
  It says: <strong>No such file or directory.</strong></p>
  
  <p>Did Homebrew maybe forget to install something?</p>