码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-08-11 20:29:02      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:ar   sql   mysql   on   server   ca   oo   socket   

[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

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

标签:ar   sql   mysql   on   server   ca   oo   socket   

原文地址:http://www.cnblogs.com/lehao/p/3905261.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!