
March 14th, 2013, 02:43 PM
|
|
Registered User
|
|
Join Date: Mar 2013
Posts: 2
Time spent in forums: 50 m 9 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by E-Oreo It shouldn't.
If the problem is hardware related, MySQL probably won't be able to log anything more useful about it.
What exactly do you mean by the tables are becoming corrupted? |
I forgot to mention, the storage engine is innodb.
A mysqlcheck on the table produces an error. Here is what the error.log has:
Code:
InnoDB: Database page corruption on disk or a failed
InnoDB: file read of page 1477671.
InnoDB: You may have to recover from a backup.
130314 8:34:42 InnoDB: Page dump in ascii and hex (16384 bytes):
len 16384; hex [hex string deleted]
130314 8:34:42 InnoDB: Page checksum 412120851, prior-to-4.0.14-form checksum 2820154251
InnoDB: stored checksum 921764659, prior-to-4.0.14-form stored checksum 2820154251
InnoDB: Page lsn 922 3852332481, low 4 bytes of lsn at page end 3852332481
InnoDB: Page number (if stored to page already) 1477671,
InnoDB: space id (if created with >= MySQL-4.1.1 and stored already) 0
InnoDB: Page may be an index page where index id is 0 551733
InnoDB: (index PRIMARY of table [database]/[table])
InnoDB: Database page corruption on disk or a failed
InnoDB: file read of page 1477671.
InnoDB: You may have to recover from a backup.
InnoDB: It is also possible that your operating
InnoDB: system has corrupted its own file cache
InnoDB: and rebooting your computer removes the
InnoDB: error.
InnoDB: If the corrupt page is an index page
InnoDB: you can also try to fix the corruption
InnoDB: by dumping, dropping, and reimporting
InnoDB: the corrupt table. You can use CHECK
InnoDB: TABLE to scan your table for corruption.
I have been successful in dumping table, dropping table, and restoring table from the dumped .sql file. I have also restored corrupted tables from daily backups.
The error log does e4eem to suggest a hardware issue, but then why is it that can restore the table from a dump of itself?
|