I've literally looked all over Stack Overflow, Superuser, I cannot find a solution to my problem that I'm experiencing right now, when I want to start MySQL, it produces this error:
ERROR! The server quit without updating PID file (/usr/local/var/mysql/My-Username.local.pid).
with the sudo mysql.server start
command, however, if I simply use the mysql
command, it will produce:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Which is also another problem I cannot fix, I did touch /tmp/mysql.sock
, nothing.
I've chown
'd the /usr/local/var/mysql
with mysql:mysql
recursively, but that didn't help at all.
I installed MySQL via homebrew on OS X 10.7.3. How can I start up MySQL?