I know that this question has already been submitted many times. Yet, all the solutions seem to be a bit out-of-date or not in line with the current version of mysql.
So, I've tried to install Mysql 5.7.11 on El Capitan via Homebrew. When I launch
mysql -u root
I get this error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)
Few insights from other solutions..
- I looked for my.cnf and it's empty
- If I try to launch
mysql.server start
I get. ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Air-2.local.pid).
(Where MacBook-Air-2 is my HOSTNAME)
Any idea? I'm really stuck here for days now and I don't know what else to try! Thanks a lot!