Can't connect to local MySQL server through socket '/tmp/mysql.sock'

找不到/tmp/mysql.sock这个文件,需要查找/tmp/mysql.sock文件位置,并在/etc/my.cnf里面配置

[client]
socket=/var/lib/mysql/mysql.sock #实际的文件,不配做默认/tmp/mysql.sock

posted @ 2016-11-04 16:24  茫海  阅读(175)  评论(0编辑  收藏  举报