mysql ERROR 2002 (HY000): Can't connect to local_MySQL
程序员文章站
2022-05-01 13:50:17
...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
原因是,/var/lib/mysql 的访问权限问题。
使用命令:chown -R mysql:mysql /var/lib/mysql
原因是,/var/lib/mysql 的访问权限问题。
使用命令:chown -R mysql:mysql /var/lib/mysql
推荐阅读
-
MYSQL ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.10.210' (111) 解决方法
-
MySQL错误 ERROR 2002 (HY000): Can't connect to local MySQL server through socket 的解决办法
-
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)解决办法
-
linux安装MySQL后输入mysql显示 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
-
远程连接centos7 上的mysql报(ERROR 2003 (HY000): Can't connect to MySQL server on '168.x.x.x' (10060) )
-
关于CentOS输入mysql提示ERROR 2002 (HY000):Can't connect to_MySQL
-
ERROR 2002 (HY000): Can't connect to local MySQL server thro
-
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var mys
-
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var mys
-
MySQL错误ERROR 2002 (HY000): Can't connect to local MySQL se