List:General Discussion« Previous MessageNext Message »
From:Ganesh Kumar Date:April 11 2012 8:51am
Subject:ERROR 2002 (HY000): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (2)
View as plain text  
Hi Guys,

I am using debian squeeze it's working good, I am trying to install
mysql-server. mysql-server installation successfully but didn't start
service
root@devel:/var/run# more /etc/mysql/my.cnf |grep socket
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
socket          = /var/run/mysqld/mysqld.sock
socket          = /var/run/mysqld/mysqld.sock
socket          = /var/run/mysqld/mysqld.sock

root@devel:~# /etc/init.d/mysql restart
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
root@devel:~# mysql -u root -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)
root@devel:~# cd /var/run/mysqld/
root@devel:/var/run/mysqld# ls
root@devel:/var/run/mysqld#


-Ganesh.

Did I learn something today? If not, I wasted it.
Thread
ERROR 2002 (HY000): Can't connect to local MySQL server throughsocket '/var/lib/mysql/mysql.sock' (2)Ganesh Kumar11 Apr
  • Re: ERROR 2002 (HY000): Can't connect to local MySQL server throughsocket '/var/lib/mysql/mysql.sock' (2)mailing@securitylabs.it11 Apr
  • Re: ERROR 2002 (HY000): Can't connect to local MySQL server throughsocket '/var/lib/mysql/mysql.sock' (2)Larry Martell11 Apr
    • Re: ERROR 2002 (HY000): Can't connect to local MySQL server throughsocket '/var/lib/mysql/mysql.sock' (2)Prabhat Kumar11 Apr
      • Re: ERROR 2002 (HY000): Can't connect to local MySQL server throughsocket '/var/lib/mysql/mysql.sock' (2)Claudio Nanni13 Apr