If I run mysqld
, ie invoke it directly on the command-line, it survives the shell being closed or hitting ctrl-c
.
Is there any way to run it "interactively", ie so that it will shut down if either of those things happen?
(I'd find this useful during development as I have a tmux script to quickly bring up and down various servers.)
Best Answer
You could try
--gdb
. That will make it respond toSIGINT
, though I'm not sure if that has potential to corrupt the database.--one-thread
may also be of some help.