Prevent MySQL from automatic restart after a crash


is there an option to avoid the automatic restart of the MySQL daemon itself after a crash?

Thanks in advance.

Hi Thomas,

AFAIK, If you start mysqld normally using startup script or as a service and if mysqld would crash than mysqld_safe would restart it automatically because mysqld_safe is the control script, which is responsible for automatic starting mysqld. However, if you start mysqld directly like : “/usr/sbin/mysqld &” then if it crashes it should not be restarted automatically.