Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have MySQL on my computer for development purposes, but most of the time I don't use it. How can I configure my Debian so it won't start MySQL at boot, but only when I tell it to ( using service mysql start).

I did the same thing to apache2 using,

 update-rc.d -f apache2 remove

But I couldn't find a way to do this with MySQL.

share|improve this question
up vote 13 down vote accepted

You want update-rc.d mysql disable. You don't want remove, As noted in the update-rc.d manpage:

A common system administration error is to delete the links with the thought that this will "disable" the service, i.e., that this will pre‐ vent the service from being started. However, if all links have been deleted then the next time the package is upgraded, the package's postinst script will run update-rc.d again and this will reinstall links at their factory default locations

share|improve this answer
update-rc.d -f mysql remove


update-rc.d mysql disable
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.