Remove MySql from Ubuntu Startup
November 27, 2011
0
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