How do I turn off the sql server by default on startup? [duplicate]
As soon as I turn on my system and run the command :
service mysql status
It shows that the service has been activated since the PC was turned on, I want it to be off my default and when I want to, I should be able to activate it by :
service mysql start
Is this possible?
Solution 1:
On Ubuntu 16.04 and newer use
systemctl disable mysqld.service
Notice the difference: stop
to stop the running service and disable
to disable autostart.