• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

how to safely restart mysql

M

manarak

Guest
Hi all

I would like to know how to safely restart mysql, including setting up the new socket.

the command "mysqld restart" does not renew the socket, so that websites do not have access to mysql anymore.

so, what's the correct procedure to restart mysql and return to normal operations without rebooting?
 
Hi, apparently this doesn't do the trick.

If server is running and I try to restart mysqld or if I try the stop/start variant above, I will get the "cannot connect" error.
If I reboot the server, the socket is created properly.

What must I do so that the socket is created automatically when I restart mysql?
 
Back
Top