patternsqlMinor
Make MySQL server terminate when shell exits or on ctrl-c
Viewed 0 times
exitsterminatemakeshellctrlmysqlwhenserver
Problem
If I run
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.)
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.)
Solution
You could try
--gdb. That will make it respond to SIGINT, though I'm not sure if that has potential to corrupt the database. --one-thread may also be of some help.Context
StackExchange Database Administrators Q#53046, answer score: 7
Revisions (0)
No revisions yet.