首页 > 代码库 > Centos 7 安装mysql后出现 ERROR 2002 (HY000)解决方案

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.servicesystemctl enable mariadb.service 

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