Making MySQL NOT start up when Ubuntu starts

Jim Richardson warlock at eskimo.com
Fri Jun 10 08:30:37 UTC 2005


On Fri, 2005-06-10 at 14:38 +0700, Chanchao wrote:
> Hi,
> 
> I sometimes do some testing of PHP scripts on MySQL server, but I
> don't really want to run MySQL all the time. (Uses up memory, etc.)
> 
> I tried cancelling out the script in /etc/rc.something , but
> apparently the same script is also used for stopping MySQL again when
> turning off the computer??
> 
> How does one do this? If a trash the script then I worry MySQL won't
> shut down properly.
> 
> Cheers,
> Chanchao
> 
> 


use the update-rc.d script, and example

sude update-rc.d mysql remove

you may need to add the -f flag to update-rc.d 

What this will do, is remove all instances of mysql from the startup
scripts for the various levels, it will *also* remove all stop scripts
(actually, they are links, not scripts) You can still start, stop, and
restart mysql using the script that they linked to in /etc/init.d/mysql 

sude /etc/init.d/mysql start|stop|reload

But be aware that a new update of mysql, may well reinstall the links
from the rc levels which you removed above. Something to bear in mind if
mysql suddenly starts running upon bootup again. 
-- 
Jim Richardson http://www.eskimo.com/~warlock
I have plenty of talent and vision. I just don't give a damn.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050610/81800972/attachment.sig>


More information about the ubuntu-users mailing list