Results 1 to 5 of 5
hi,
when i try to connect MySQL Administrator it is showing the error, i don't know how to overcome this, two days back it was worked and now it is ...
- 03-05-2008 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 4
Could not connect to host 'localhost'.
hi,
when i try to connect MySQL Administrator it is showing the error, i don't know how to overcome this, two days back it was worked and now it is not and i'm using openSUSE 10.3 and MySQL 5.0
i'm doing project due to this error i can't proceed further
Error Message
Could not connect to host 'localhost'.
MySQL Error Nr. 2002
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Help me
- 03-05-2008 #2
Does /var/lib/mysql/mysql.sock exist on your system? Also what is the output of
Code:#find / -name mysql.sock
- 03-06-2008 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 4
no, mysql.sock is not find in my system in path /var/lib/mysql/mysql.sock
- 03-06-2008 #4
probably your mysql server is not running?
- 03-07-2008 #5Just Joined!
- Join Date
- Feb 2008
- Posts
- 67
Hi
first check whether MySQL is running or not
then check
/etc/my.cnf
there comment out the socket line where /var/lib/mysql/mysql.sock is given
and restart mysqld...


Reply With Quote