How to stop mysql from starting up automatically in Ubuntu Desktop

MySQL uses a different mechanism other than apache2, so you can simply comment the three lines inside “/etc/init/mysql.conf”

Change this:

start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]

to this:

#start on (net-device-up
# and local-filesystems
# and runlevel [2345])
stop on runlevel [016]

Source: http://anonir.wordpress.com/2010/08/09/ubuntu-lucid-disable-services-from-starting-during-boot/

It worked perfectly with the latest version of Ubuntu as of this article (Oneiric, 11.10)

Advertisements

About SoCRaT

Research Support and Infrastructure Engineer, OSS & Linux Geek
This entry was posted in Ubuntu and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s