Home > Database > Mysql Tutorial > mysql ERROR 2002 (HY000): Can't connect to local_MySQL

mysql ERROR 2002 (HY000): Can't connect to local_MySQL

WBOY
Release: 2016-05-31 08:47:51
Original
1375 people have browsed it

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template