This is useful when you’re running a local LAMP server on your computer, but you don’t want it to run automatically every time you turn your computer on. This will prevent MySQL from starting automatically every time your computer boots up. Doing this will keep your computer a little bit cooler.
sudo systemctl disable mysql
Start MySQL Manually
Then, you can turn on MySQL only when you want to run it:
sudo systemctl start mysql.service
Notes
You’ll also want to do the same for Apache.
Questions and Comments are Welcome