Disabling MySQL on startup Ubuntu

Submitted by Jochus on Sun, 18/07/2010 - 23:55 | Posted in: Linux

I was looking for a way to NOT startup MySQL on my Ubuntu machine, while booting the system.
In previous versions, this could be easily done with the rcconf tool. I'm using Ubuntu 10.04 (LTS - Lucid) now. But this was the result with rcconf in Ubuntu Lucid (10.04 LTS):






So MySQL was starting up, every time at boot time, but the rcconf tool was telling me : "hey, MySQL doesn't start up at boot time!".

After Googling a while, I found out that MySQL is now starting up by upstart (http://upstart.ubuntu.com/). In order to disable MySQL, execute following steps:

<a href="mailto:jochen@DESKTOP">jochen@DESKTOP</a>-JOCHEN ~ $ sudo nano /etc/init/mysql.conf

Now comment the lines marked with "<-------"

# MySQL Service

description "MySQL Server"
author "Mario Limonciello "

# start on (net-device-up <-------
# and local-filesystems) <-------


Reboot your system to test :-) !

Add new comment

The content of this field is kept private and will not be shown publicly.

Full HTML

  • Lines and paragraphs break automatically.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Web page addresses and email addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <cpp>, <css>, <html5>, <java>, <javascript>, <php>, <sql>, <xml>. The supported tag styles are: <foo>, [foo].
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.