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

[root@RKAL-ULIN-RADIUSx3250 log]# lsof -i:3306
[root@RKAL-ULIN-RADIUSx3250 log]# ps -ef| grep mysqld
root      2474     1  0  2020 ?        00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql     2594  2474  0  2020 ?        21:42:19 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root     28930 27402  0 17:01 pts/2    00:00:00 grep mysqld
[root@RKAL-ULIN-RADIUSx3250 log]# kill -9 2474
[root@RKAL-ULIN-RADIUSx3250 log]# ps -ef| grep mysqld
mysql     2594     1  0  2020 ?        21:42:19 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root     28933 27402  0 17:02 pts/2    00:00:00 grep mysqld
[root@RKAL-ULIN-RADIUSx3250 log]# kill -9 2594
[root@RKAL-ULIN-RADIUSx3250 log]# ps -ef| grep mysqld
root     28935 27402  0 17:02 pts/2    00:00:00 grep mysqld
[root@RKAL-ULIN-RADIUSx3250 log]# service mysqld restart
Stopping mysqld:                                           [FAILED]
Starting mysqld:                                           [  OK  ]
[root@RKAL-ULIN-RADIUSx3250 log]# mysql

Posting Komentar

Lebih baru Lebih lama