Re: How to start mysql at boot time?

From: Dave Uhring (daveuhring_at_yahoo.com)
Date: 06/16/05


Date: Thu, 16 Jun 2005 15:27:05 -0500

On Thu, 16 Jun 2005 21:17:14 +0200, Bas Keur wrote:

> Now thats a very good point indeed.
> However, if for some reason (ex. power surge) the system is kicked
> down, i always have to do a `mysqlcheck -uxxx -pxxx -A` and pray
> i don't have to do a drop/create / mysql db < /backup/db.sql
>
> (note: cron backup 2 times a days keeps bad karma away)

A UPS is a better solution :-)

> BUT..... when i do a `reboot` ... i never ever had any corruption...
> Which leaves me 2 options. Correct me if i'm wrong.
>
> 1: If a deamon makes a pid file, it wil be stopped anyway..... ?
> 2: The `reboot` sync's the fs, so i was lucky no corruption ever happend due
> reboot.

Pending operations within the database may not have completed in the case
of a reboot without having shut down the daemon. When you executed your
reboots the daemon had probably been idle.

Checking the mysql.server script it appears that a kill $mysqld_pid is
executed then wait for the daemon to remove the PID.

> Either way, i'll use the rc.shutdown also from now on :)

Much safer, IMHO.



Relevant Pages

  • Re: took lightning hit - server 2003 bootup errors
    ... I am now thinking it was not a power surge. ... the next reboot it reverted to the same behavior as before. ... E-9220T SATA RAID Driver but, it doesn't install quite like the XP drivers ... I was able to boot up successfully into Safe Mode with Networking, ...
    (microsoft.public.windows.server.setup)
  • Re: XP sometimes boots only part way
    ... I was mixing up services and start ups. ... If it has then put back half of them and reboot ... Into Safe Mode it will always boot. ...
    (microsoft.public.windowsxp.basics)
  • Re: mute crash / DDB
    ... They are indeed on a UPS. ... I wasn't too worried about it when the symptom was a reboot; ... I'm slightly more concerned now that it freezes, ... of pings, it doesn't help:(. ...
    (comp.unix.bsd.openbsd.misc)
  • Re: Spontaneous Reboot SBS2K3
    ... if it continues to reboot by itself, turn off the automatic reboot on error, ... so that if the server has an error (as opposed to dodgy ups etc) then you ... also had an instance where someone plugged a hover into UPS ... could be protected) - that overloaded UPS causing it to down the server :-), ...
    (microsoft.public.windows.server.sbs)
  • Re: [opensuse] Attempting (and failing) to use my UPS
    ... from about 6-8 months ago between Patrick Shanahan and myself concerning nut ... setup for the usb model cyber power UPS. ... Mine belongs to "daemon", not uucp. ...
    (SuSE)