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

用这个命令成功解决的
[root@VM-4-17-centos server]# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock