Send As SMS

2/10/2006

fixing "can't connect to local mysql server through socket '/tmp/mysql.sock'"

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 the mysql 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.


0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.