If I run
mysqld from the command line, it displays some startup messages, and then stops responding. It doesn't produce output, and ignores any input, and there seems to be no way to get rid of it. ctrl+z and ctrl+c don't do anything, there is no way to get back to a terminal - I have to start a new session. This means, for instance, if I am connecting to a server via ssh I have to initiate a new ssh connection.
This is very annoying. Is there any way in bash to tell it to deactivate the currently running process? Any other program I can suspend with ctrl+z, but not mysqld, though I don't know why. If I start it with
mysqld & then it runs in the background and I can send signals to it normally, as long as I don't make the mistake of typing
fg, and it otherwise acts like an ordinary process, so I don't know why ctrl+z has no effect on it, since I thought that was part of bash rather than being under the control of the process.
So: Is there an alternative to ctrl+z, for when ctrl+z does not work?