Disable MySQL startup in Ubuntu10.04

Source: Internet
Author: User
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]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.