【解决】Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.soc
程序员文章站
2022-06-16 14:22:09
...
启动mysql报错:
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
原因是,/var/lib/mysql 的访问权限问题。
shell> chown -R mysql:mysql /var/lib/mysql
接着启动服务器
shell> /etc/init.d/mysql start
解决。
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
原因是,/var/lib/mysql 的访问权限问题。
shell> chown -R mysql:mysql /var/lib/mysql
接着启动服务器
shell> /etc/init.d/mysql start
解决。
推荐阅读
-
连接Mysql提示Can’t connect to local MySQL server through socket的解决方法
-
MySQL错误 ERROR 2002 (HY000): Can't connect to local MySQL server through socket 的解决办法
-
Can't connect to local MySQL server through socket
-
linux安装MySQL后输入mysql显示 ERROR 2002 (HY000): Can't connect to local MySQL server through socket
-
【解决】Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.soc
-
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
-
Can't connect to local MySQL server through socket &
-
Can't connect to local MySQL server through socket解决方法_MySQL
-
Can’t connect to local MySQL server through socket 解决办法