标签:解决 soc lib server cti find centos sock can
Centos登录Mysql时出现Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘的错误。
解决方法:
1.首先输入命令 find / -name mysql.sock,如果结果中有/var/lib/mysql/mysql
.sock
,则进行第二步
2.输入命令建立一个软连接
ln
-s
/var/lib/mysql/mysql
.sock
/tmp
3.登录mysql
标签:解决 soc lib server cti find centos sock can
原文地址:https://www.cnblogs.com/qianmo123/p/12255284.html