• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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