snippetsqlMajor
How do I disable MySQL on Linux from starting on boot or statup?
Viewed 0 times
startingbootdisablemysqllinuxhowstatupfrom
Problem
After adding MySQL to Ubuntu, it automatically starts up on server boot. I would like it to not start up with the system.
How can I disable it and manually start it?
How can I disable it and manually start it?
Solution
MariaDB use
If you see
Now you can start and stop MySQL with
systemd as does MySQL. To disable MySQL or MariaDB, from starting on bootup, runsystemctl list-unit-files '*mariadb*' '*mysql*'If you see
mysql.service, try disabling that one first.sudo systemctl disable mysqlNow you can start and stop MySQL with
sudo systemctl stop mysql.service
sudo systemctl start mysql.serviceCode Snippets
systemctl list-unit-files '*mariadb*' '*mysql*'sudo systemctl disable mysqlsudo systemctl stop mysql.service
sudo systemctl start mysql.serviceContext
StackExchange Database Administrators Q#208612, answer score: 20
Revisions (0)
No revisions yet.