I have a problem with a MySQL application that write on a SD card or a Compact Flash. After a data loss (a power failure, for example), if I try to retrieve the data of my db, it fails and the error code is incorrect format table
. If I try to see the files of my DB in filesystem I get can't stat file or directory (I/O error)
.
How can I overcome this problem: prevent it from happening or recover the contents of the db?
Setup:
- A filesystem with ext2 filesystem (to prevent SD card multiple writings)
- SD cards or DOM or Compact Flash as physical support
- OS: TinyCore Linux Embedded - loaded in RAM