title: MySQL installed via HomeBrew Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
body: <p>I've been searching for hours about this issue i'm having.</p>
  <p>I have installed mysql@5.7 in my mac osx Monterey 12.0.1 with M1 chip using Homebrew.</p>
  <p>I've been following this <a href="https://medium.com/macoclock/installing-mysql-5-7-using-homebrew-974cc2d42509" rel="nofollow noreferrer">tutorial</a> that helped me install mysql version 5.7. I'm specifying this version because i'm recreating a production environment on local.</p>
  <p>At the step where I need to secure my mysql installation I type user root password and get this error <strong>Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)</strong>.</p>
  <p>I have read many ways to fixing this but I can't make it work with any of those because most of them don't relate to homebrew or don't work well for me.</p>
  <p>I have the service running using the <strong>brew services start mysql@5.7</strong> command and this doesn't seem fixing the issue.</p>
  <p>Is there any possibility I can't make it run because I have an M1 chip?</p>