Currently, my MySQL server starts on every server boot. For a couple reasons, this is undesirable behavior. Is there a way to disable this behavior?
|
There are two Guis I can think of. From Applications -> Ubuntu Software Center search for "boot up manager". After installing you will find it in the System -> Administration -> BootUP-Manager. Another is Webmin. Webmin uses your browser. After installing point your browser to https://localhost:10000/ Look for services and work it from there. |
|||||
|
|
To prevent mysql from starting on boot:
If you want to manually start mysql, use the following command:
Taken liberally from here. |
|||||||||||||||||
|
|
Since 15.04 you can simply do:
|
||||
|
Things have changed quite a bit in Ubuntu now. I think from version 11 onwards. MySQL is handled by Upstart while Apache still uses traditional SysV init scripts For MySQL, you can use the new override feature in Upstart to modify the starting behaviour:
For more info, see the section "Disabling a Job from Automatically Starting" in the Upstart Cookbook. As Apache still uses the traditional SysV init scripts you can use
to remove the links from
which "disables" the script by changing it from a start script to a stop script. This is reversible by
Most of this information I got from here: https://askubuntu.com/a/40077/24678 |
||||
|
|
|
Or if your really laze like me you could just open a Terminal session and then type:
You can then just issue a reboot command then your system will boot-up without mysql started. |
|||||
|
|
Actually, there is also another method to accomplish this, via the sysv-rc-conf tool. You can install it by typing
It allows you to take control over all available services, including running/stopping them in place and configuring services' operation per runlevel. Edit: You have to run tis tool as root:
|
|||
|
|
|
You can use
|
|||||
|