Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Can't connect to local MySQL server through socket '/tmp/mysql.sock'

 

删除配置文件后重启

service mysql  restart

 

 

root 31619 1 0 14:06 ? 00:00:00 /bin/sh /home/mysql/bin/mysqld_safe --datadir=/home/mysql/data --pid-file=/home/mysql/data/localhost.localdomain.pid
mysql 31709 31619 1 14:06 ? 00:00:00 /home/mysql/bin/mysqld --basedir=/home/mysql --datadir=/home/mysql/data --plugin-dir=/home/mysql/lib/plugin --user=mysql --log-error=/home/mysql/data/localhost.localdomain.err --pid-file=/home/mysql/data/localhost.localdomain.pid
root 32089 25072 0 14:07 pts/5 00:00:00 grep --color=auto mysql

 

posted @ 2023-10-25 14:41  WilliamShaw  阅读(17)  评论(0编辑  收藏  举报