Gents,
MYSQL does not react well to a system crash (this being VMS, only upon power failure) but also a normal systems shutdown. I then discovered the mechanism in MYSQLADMIN and instructed the server to SHUTDOWN (yes - 2x as it advises!). I would have thought shutting the server down twice would be enough, but not so! It still corrupted (at least) 2 of 8 or so tables. Now, I will try to issue a series of FLUSH commands before shuting down to see it I can get a clean exit but it occurs to me this is getting a bit silly - surely we do not need to issue anything up to 10 DCL commands to make this die gracefully?
Can somebody educate me on MYSQL shutdown theory?
Many thanks
Paul
MYSQL Shutdown
- beaudoin_p
- $ HELP
- Posts: 13
- Joined: Fri Oct 21, 2005 10:31 am
- Location: London UK
- Cluster-Karl
- Posts: 1
- Joined: Wed Feb 02, 2005 8:03 am
$ Set Noon
$ MYSQLADMIN -u 'MyUsername' -p'MyPassword' "SHUTDOWN"
$ wait 00:00:02
$ MYSQLADMIN -u 'MyUsername' -p'MyPassword' "SHUTDOWN"
$ wait 00:00:02
$ MYSQLADMIN -u 'MyUsername' -p'MyPassword' "SHUTDOWN"
$!
This is the sequence we use here ( 3 times seem to work) and we never got a corrupted databse till now.
$ MYSQLADMIN -u 'MyUsername' -p'MyPassword' "SHUTDOWN"
$ wait 00:00:02
$ MYSQLADMIN -u 'MyUsername' -p'MyPassword' "SHUTDOWN"
$ wait 00:00:02
$ MYSQLADMIN -u 'MyUsername' -p'MyPassword' "SHUTDOWN"
$!
This is the sequence we use here ( 3 times seem to work) and we never got a corrupted databse till now.
regards Kalle
- beaudoin_p
- $ HELP
- Posts: 13
- Joined: Fri Oct 21, 2005 10:31 am
- Location: London UK
MYSQL Shutdown
Kalle,
Thanks for the advice - it seems to work fine. Still - a bit non-intiative - shut it down 3 times to get it to actually shutdown seems a bit OTT. Nonetheless, it works, is simple and seems reliable - no complaints.
Regards
Paul
Thanks for the advice - it seems to work fine. Still - a bit non-intiative - shut it down 3 times to get it to actually shutdown seems a bit OTT. Nonetheless, it works, is simple and seems reliable - no complaints.
Regards
Paul