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