For example, say, we want to prevent the MySQL server from auto-starting. We need to remove the symlink(s) in /etc/rcX.d directory that cause it to auto start. We can manually go to the directory and delete them. Or we can run this command from the terminal :
Code: Select all
sudo update-rc.d -f mysql remove
You will get a message saying :
Removing any system startup links for /etc/init.d/mysql ...
And any symlinks pertaining to MySQL will be deleted.
Another alternative is to use the Boot-Up Manager GUI. Install it by writing :
Code: Select all
sudo apt-get install bum
After installation, start the application by going to Applications-> System->BootUp-Manager in Xubuntu. (In Ubuntu, the location may be slightly different). Find “Fast and stable SQL database server”, right-click on it and select “Deactivate and apply now”.
You are done and good to go. MySQL server will not auto-start now.
Source