Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

登錄MySQL報錯:Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) 解決辦法: 1.先殺死mysql進程 pkill -9 mysql 2.編輯mysql配置文件 vim /etc/my.cnf 3.鍵入如下 [mysql] protocol=tcp
相關文章
相關標籤/搜索