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