Disable MySQL startup on Ubuntu

To prevent MySQL from starting up after a reboot edit /etc/init/mysql.conf and comment out the lines with the ‘start on’ directive:

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

Unfortunately Ubuntu behaves different than other Debian based distributions here, where you would use the command

update-rc.d -f mysql remove

instead.

Disable MySQL startup on Ubuntu
Share this