On the Internet, if sysv-rc-conf is used for configuration, or if S is changed to start with K, because 10.04 connects the MySql startup to/lib/init/upstart-job, and the latter calls/etc/init/mysql. the definition of boot in the conf file is a new framework, so the previous method is useless, when you use sysv-rc-conf, you even find that mysql cannot be started on any runrevel, but the actual situation is that
On the Internet, if sysv-rc-conf is used for configuration, or if S is changed to start with K, because 10.04 connects the MySql startup to/lib/init/upstart-job, and the latter calls/etc/init/mysql. the definition of boot in the conf file is a new framework, so the previous method is useless, when you use sysv-rc-conf, you even find that mysql is not allowed to be started on any runrevel, but the actual situation is that it is automatically started very calmly every time.
Let's take a look at the definitions in/etc/init/mysql. conf.
Start on (net-device-up
And local-filesystems
And runlevel [2345])
Stop on runlevel [016]
From this we can see that when runrevel is 2345, mysql is started, but 016 is not started.
I am very embarrassed. I directly commented out the start line, and the stop line is 0123456, haha
Start on (net-device-up
And local-filesystems)
# And runlevel [2345])
Stop on runlevel [0123456]