I moved mysql datadir to /storage-s01/mysql, but socket is still located at the same directory /var/lib/mysql/mysql.sock.
Do I have to keep socket at the same directory as datadir?
BTW, If I want to change datadir, i have to change that only /etc/my.cnf file?
I have mariadb