mysql ERROR 2002 (HY000): Can't connect to local_MySQL
程序员文章站
2024-01-28 10:35:22
...
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
推荐阅读
-
ERROR 2002 (HY000): Can't connect to local MySQL ser
-
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)已解决
-
mysql ERROR 2002 (HY000): Can't connect to local_MySQL
-
MySQL错误ERROR 2002 (HY000): Can't connect to local MySQL se
-
更换mysql数据目录后出现ERROR 2002 (HY000): Can't connect to local My
-
MySQL错误ERROR 2002 (HY000): Can't connect to local MySQL server through socket_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