mysql -usystem -pMypassword
Somehow, it is using wrong socket file when using mysql client to connnect
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/home/mysql/mysql01.sock’
in /etc/my.cnf
I have following
[mysqld]
socket=/home/mysql/mysql.sock
[client]
[mysql]
socket=/home/mysql/mysql.sock
But still mysql client says Socket ‘/home/mysql/mysql01.sock’ while it should be Socket ‘/home/mysql/mysql.sock’
I also checked that I don’t have .my.cnf in my default home dir.
What am I missing ?