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

时间:2014-08-11 20:29:02   收藏:0   阅读:248

[root@test]# /usr/local/mysql/bin/mysql -uroot
ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)
[root@test]# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

再次链接就好了。

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2),布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!