Centos 7 安装mysql后出现 ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock‘ (2)
切换成root,
systemctl start mariadb.service systemctl enable mariadb.service
Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案
原文:http://www.cnblogs.com/TsAihS/p/5830705.html