I have confusion while I'm execute the command "# find / -name mysqld". Because the mysqld is located in four places which are:
What is the purpose of another three mysql daemons?
Here is the following explanations
If you run which mysqld
you should see the first one
You never run that directly
When you run service mysqld start
, it calls /etc/rc.d/init.d/mysqld
to kickoff a program called mysqld_safe
(Run which mysqld_safe
). mysqld_safe
and mysqld
work together to be the server daemon.
In turn, mysqld_safe
will kickoff mysqld and then checks for an exit code. You can run less /etc/rc.d/init.d/mysqld
and see this. If mysqld did not end due to system shutdown or a normal service mysql stop
, mysqld_safe will attempt to restart mysqld
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With