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

[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)

上一篇:mysql利用唯一索引去重


下一篇:Elasticsearch es三种分页方式和对比