【解决】Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.soc

启动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

解决。

你可能感兴趣的:(mysql,server)