So I had installed MySQL from a download. It was working fine. My socket file mysql.sock was located at /private/tmp
After installing homebrew (don't know if it's directly related to homebrew) my socket file disappeared.
I look for it /private/tmp/mysql.sock and it's not there anymore.
I can't start the MySQL daemon. I can't login to my database. MySQL Workbench can't connect.
I've been looking for mysql.sock file and the my.cf file but I can't find them.
When I try to connect using the terminal, I get this error
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
In MySQL Startup I get `Warning: The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user.
I have already done the following: http://stackoverflow.com/questions/4762543/mysql-what-user-should-own-usr-local-mysql-on-mac
sudo chown -R _mysql:wheel /usr/local/mysql/data sudo chown -R mysql:wheel /usr/local/mysql/data
What would be the reason my mysql.sock file disappeared and how can I make MySQL work again?