1. my.cnf 配了
[mysqld]
basedir=/home/mysql/mysql
datadir=/home/mysql/mysql/data
socket=/home/mysql/mysql/mysql.sock
2. chown -R mysql:mysql /home/mysql/mysql/
3.[root@vm-oracle-node1 ~]# mysql -u root mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
请问为什么?