Stop MySQL From Starting Automatically on Boot

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.

See more: ,

Questions and Comments are Welcome

Your email address will not be published. All comments will be moderated.

Please wrap code in "code" bracket tags like this:

[code]

YOUR CODE HERE 

[/code]