I'm using Ubuntu Xenial and mysql 5. editing the mysql.conf file didn't help. it's still showing active.
Asked
Active
Viewed 8,566 times
1 Answers
11
Ubuntu 16.04 uses systemd to control autostart of services. Try using the systemctl command:
sudo systemctl disable mysql

Søren Sjøstrøm
- 146
-
2Tried 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
-
1I confirm this work in Ubuntu 18.04 too – Manuel Jordan Nov 03 '19 at 16:12