解决问题Can’t connect to local MySQL server through socket
生活随笔
收集整理的這篇文章主要介紹了
解决问题Can’t connect to local MySQL server through socket
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
不幸遇到MySQL出現(xiàn)ERROR 2002 (HY000): Can’t connect to local?mysql?server through socket ‘/tmp/mysql.sock’錯(cuò)誤導(dǎo)致無(wú)法啟動(dòng)。
??? 解決方法: 修改/etc/my.conf:
?
[php]?view plaincopy ?
??? 這樣mysqld 及mysql就都可以搞定啟動(dòng)起來(lái)。
?
主要是 增加?
[client] ?
socket=/var/lib/mysql/mysql.sock?
轉(zhuǎn)載于:https://www.cnblogs.com/liqing1009/p/7093318.html
總結(jié)
以上是生活随笔為你收集整理的解决问题Can’t connect to local MySQL server through socket的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 基于语音识别的微博签到系统
- 下一篇: 从MySQL随机选取数据