ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)解决办法
1.查看是否有 mysql.sock 如果有做个软连接即可
find / -name mysql.sock
2.修改权限
chmod 777 /var/lib/mysql
3做软连接
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)解决办法
1.查看是否有 mysql.sock 如果有做个软连接即可
find / -name mysql.sock
2.修改权限
chmod 777 /var/lib/mysql
3做软连接
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock