Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

up vote 5 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

or:

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

Your Answer

 
discard

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.