Results 1 to 10 of 17
1. What is this Issue?
myserver:~ # mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
2. How to resolve this?
3. What is the ...
- 01-29-2008 #1Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
1. What is this Issue?
myserver:~ # mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
2. How to resolve this?
3. What is the command to check mysql installed in my server?
- 01-29-2008 #2
Try starting mysql by doing
Post back any error messages.Code:#/etc/init.d/mysql start
- 01-29-2008 #3Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
But not able to start by that command.
myserver:~ # ../etc/init.d/mysql start
Starting MySQL................................... failed
- 01-29-2008 #4Just Joined!
- Join Date
- Jul 2004
- Posts
- 9
did you try restart instead of just start ? maybe stop then start ? Im not sure if sock and socket are the same, maybe it has something to do with the port.... but im not sure at all, just a wild guess
- 01-29-2008 #5Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
myserver:~ # ../etc/init.d/mysql stop
MySQL manager or server PID file could not be found! failed
Do not know what is going on !!!!!!!!!!!!!!
Help me !!!!!!!!!!
- 01-29-2008 #6
Look at the error log which should be somewhere in /var/log.
- 01-30-2008 #7Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
Can u please tell me in details which log file to check in that folder /var/log.
I could not find any log file with the date?
- 01-30-2008 #8
On my system its /var/log/mysqld.log. Out of curiosity, did you install using official SUSE rpms?
- 01-30-2008 #9Just Joined!
- Join Date
- Dec 2007
- Location
- chennai-TN,India
- Posts
- 42
But i dont have any mysqld.log file here in my system.
- 01-30-2008 #10
You didn't reply all questions. Did you use the official openSUSE rpms for mysql? On my openSUSE 10.3 system, I used the official mysql packages from SUSE and I do have that log file.


Reply With Quote