Prevent mysql service from auto start in Ubuntu

如果你曾经尝试过使用

# update-rc.d -f mysql remove

还无法禁止mysql随Ubuntu启动时启动,可以尝试一下以下方法:

# vim /etc/init/mysql.conf

注释掉文件中的以下三行

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

One thought on “Prevent mysql service from auto start in Ubuntu”

Comments are closed.