MySQL Forums
Forum List  »  Newbie

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Posted by: ozzy_rip_randy
Date: May 13, 2005 10:22AM

When trying to connect to a database or doing anything with mysql, I get

ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I checked in /tmp and there is no mysql.sock.

I've confirmed that mysql is running

ps auxww |grep mysqld
root 40645 0.0 0.0 648 200 p5- I 12Apr05 0:00.04 /bin/sh ./mysqld_safe
mysql 40687 0.0 0.4 45756 16180 p5- S 12Apr05 19:58.11 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql --pid-file=/usr/local/mysql/var/data-bus.net.pid --port=3306 --socket=/tmp/mysql.sock
root 95584 0.0 0.0 628 260 ?? S 4:59PM 0:00.00 sh -c (ps auxww |grep mysqld) 2>&1
root 95585 0.0 0.0 628 260 ?? S 4:59PM 0:00.00 sh -c (ps auxww |grep mysqld) 2>&1
root 95587 0.0 0.0 304 152 ?? R 4:59PM 0:00.00 grep mysqld


There is nothing in /var/log/messages.

The user that starts mysql does have write privelages on /tmp

Does anyone have any clue what is going on?

-------
David

Options: ReplyQuote


Subject
Written By
Posted
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
May 13, 2005 10:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.