连接mysql时报错

连接mysql时报错

[root@localhost run]# /usr/local/mysql/bin/mysql

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


解决办法:

# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock


你可能感兴趣的:(连接mysql时报错)