5

I'm using Ubuntu Xenial and mysql 5. editing the mysql.conf file didn't help. it's still showing active.

1 Answers1

11

Ubuntu 16.04 uses systemd to control autostart of services. Try using the systemctl command:

sudo systemctl disable mysql
  • 2
    Tried that on Ubuntu 17.10 several times .. but mysql starts on every boot. --- - - log ---- - - mysql.service is not a native service, redirecting to systemd-sysv-install. Executing: /lib/systemd/systemd-sysv-install disable mysql – cljk Oct 23 '17 at 07:34
  • 1
    I confirm this work in Ubuntu 18.04 too – Manuel Jordan Nov 03 '19 at 16:12