我的计算机上有用于开发的MySQL,但大部分时间我都不使用它。 我怎么能configuration我的Debian,所以它不会启动MySQL,但只有当我告诉它(使用service mysql start )。
我做了同样的事情apache2使用,
update-rc.d -f apache2 remove
但是我找不到用MySQL做这个的方法。
你想要update-rc.d mysql disable 。 您不想删除,如update-rc.d手册页所述:
A common system administration error is to delete the links with the thought that this will "disable" the service, ie, 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
update-rc.d -f mysql remove
要么:
update-rc.d mysql disable