On the Internet, you can use the sysv-RC-conf configuration method or the method of changing the S to start with K, because 10.04 connects the MySQL startup to/lib.
/Init/upstart-job, which calls the definition of boot in the/etc/init/MySQL. conf file. This is a new framework, so the previous method is
When you use sysv-RC-Conf, you even find that MySQL cannot be started on any runrevel, but the actual situation is, it automatically starts 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[012345
6]
Address: http://ylmf.net/ubuntu/tips/201010277771.html