List:General Discussion« Previous MessageNext Message »
From:Larry Martell Date:April 11 2012 4:48pm
Subject:Re: ERROR 2002 (HY000): Can't connect to local MySQL server through
socket '/var/lib/mysql/mysql.sock' (2)
View as plain text  
On Wed, Apr 11, 2012 at 2:51 AM, Ganesh Kumar <bugcy013@stripped> wrote:
> 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#

Is selinux enabled? If so, check the logs for that.
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