Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案

原文链接: http://www.cnblogs.com/TsAihS/p/5830705.html
Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案

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

 
posted on 2016-09-01 17:32  TsAihS 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/TsAihS/p/5830705.html

你可能感兴趣的:(Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案)