fixing “can’t connect to local mysql server through socket ‘/tmp/mysql.sock’”
February 10th, 2006 by Lawrence David
i noticed that if you run adobe version cue 2, the mysql daemon automatically starts upon boot up of OS X. regardless, i’ve been having trouble starting mysql.
i finally got things working by first killing the adobe-initiated mysqld. then, i followed the instructions laid out on marc liyanage’s site:
Why do I get the message
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
when I try to connect to the DB using themysql
command line client?Most likely you didn’t start up the DB server. Try this:
cd /usr/local/mysql;
sudo echo
sudo ./bin/mysqld_safe &
Then try to connect again.