MySQL Forums
Forum List  »  General

corrupt tables?
Posted by: derek organ
Date: January 27, 2005 10:29PM

I have a php/mysql applicaiton that records a timestamp in a heartbeat table every 2 minutes. Occasionally the machine (Linux: Debain) has a power cut. When it reboots the heartbeat table is often corrupt

now i run a myisamchk --recover heartbeat.MYI and its back to normal.

I have 2 questions..

1. What can i do to prevent this from happening? (table type, mysql calls etc.)

2. would it be alright to call myisamchk --recover /path/to/file/heartbeat.MYI on boot everytime so it will call it even when there isn't a problem. Or is there some special mysql program that will auto check all the tables and only fix it if requiried?

any help is greatly appreciated.

Many thank,
Derek

Options: ReplyQuote


Subject
Written By
Posted
corrupt tables?
January 27, 2005 10:29PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.