Remove MySql from Ubuntu Startup
November 27, 2011

As a developer, sometimes I need to run some CMS on my laptop, so I installed what is, in my opinion, the best combination to run a website Apache and MySql, but why do I need Mysql on startup? It’s unnecessary, so let’s remove from our machine startup:

First of all, open the mysql configuration file with root privileges

sudo gedit /etc/init/mysql.conf

Find these lines in the file

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

Comment them using #

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

Now it’s possible to start it manually using:

sudo service mysql start

Leave a Reply

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.