restartsrv mysql doing things it should not

Anoop P Alias

Well-Known Member
Mar 31, 2015
103
15
18
Kochi,Kerala,India
cPanel Access Level
Root Administrator
I am opening this post to report a bug in restartsrv_mysql . The script find out the actual location of mysql socket file and automatically symlink /var/lib/mysql/mysql.sock to the actual mysql socket.

The problem with this is ,I have integrated the Maxscale proxy router to listen on /var/lib/mysql/mysql.sock for a High available mysql service and whenever restartsrv mysql is called , it will delete the mysql.sock and symlink it to original mysql socket which is unwanted in my case .

So please open an internal case and modify the restartsrv_mysql script behavior such that the script ignores the socket if it is symlinked to another socket or in short if symlink target exists.