Hi,
I run a backup script, as part of a cronjob, to take a dump of the swift database nightly. Esentially it runs the following command;
Code:
mysqldump --opt -u root --password="password" swift >/backups/swift$date.sql
In the last day I've noticed that the backups had been not working right, it turns out there's a problem with the swauditlogs table, it's corrupted.
I've tried
Code:
myisamchk -c swauditlogs.MYI
which didn't work so then tried
Code:
myisamchk -r swauditlogs.MYI
which is returning;
Code:
- recovering (with sort) MyISAM-table 'swauditlogs.MYI'
Data records: 38753
- Fixing index 1
- Fixing index 2
myisamchk: Error writing file '/usr/local/mysql-standard-4.1.14-pc-linux-gnu-i686/data/swift/swauditlogs.MYI' (Errcode: 5)
myisamchk: error: 5 when fixing table
MyISAM-table 'swauditlogs.MYI' is not fixed because of errors
Can anyone advise what to do in order to correct this? Is is possible to just drop & recreate the table ?
Any assistance would be gratefully appreciated
Paul D
(currently using ver 3.0.0.13 of esupport, looking to update to the latest build as soon as I have the DB issue sorted)