Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


mysql.sock | 10 comments | Create New Account
Click here to return to the 'mysql.sock' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
mysql.sock
Authored by: pinqkandi on Jul 18, '02 12:24:14PM

Following the articles instructions, I get this error:

[localhost:~] mo% mysql -u root mysql
ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I also get a bunch of password stuff with the earlier commands in the article - leaving it blank works fine though.

Any ideas?

-William



[ Reply to This | # ]
mysql.sock
Authored by: vincentm on Jan 06, '03 05:01:31PM

Hi,

I already saw your problem elsewhere on the web....

**from the site posted below :
"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 ./bin/safe_mysqld --user=mysql &
Then try to connect again.

Also note that if you downloaded and installed my StartupItem package for MySQL, you might have to download it again because it has been updated and now supports the new directory layout. The old one won't work anymore.
"

This is from : http://www.entropy.ch/software/macosx/mysql/
Very good site anyway



[ Reply to This | # ]