• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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