I'm trying to change the socket directory from /tmp/mysql.sock to /var/run/mysql/mysql.sock.
I first created the directory (/var/run/mysql/) and changed owner to mysql:mysql + chmod 755.
Then I changed the 2 socket lines in /usr/local/etc/mysql/my.cnf file and restarted the server.
Now I am unable to connect to the server. No errors during startup, no errors in the MySQL error log and the mysql.sock files are showing in the /var/run/mysql/ directory.
Changing socket directory back to /tmp/mysql.sock fixes the issue.
Any ideas how to troubleshoot this?
I first created the directory (/var/run/mysql/) and changed owner to mysql:mysql + chmod 755.
Then I changed the 2 socket lines in /usr/local/etc/mysql/my.cnf file and restarted the server.
Now I am unable to connect to the server. No errors during startup, no errors in the MySQL error log and the mysql.sock files are showing in the /var/run/mysql/ directory.
Changing socket directory back to /tmp/mysql.sock fixes the issue.
Any ideas how to troubleshoot this?