首頁 >資料庫 >mysql教程 >mysql ERROR 2002 (HY000): Can't connect to local_MySQL

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

WBOY
WBOY原創
2016-05-31 08:47:511370瀏覽

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn