Disable MySQL startup in Ubuntu 10.04

Source: Internet
Author: User

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

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.