Board logo

subject: Innodb Database Corruption Post Mysql Server Crash [print this page]


Improper or unexpected MySQL Sever shutdown is one of the primary reasons for InnoDB database corruption. Two main reasons for improper server shutdown could be power outage and human errors. A major hazard that a database user encounters after InnoDB database corruption is inaccessibility of database records. The user is not left with any choice, but to restore the database records from an updated and complete backup.

However, the database backup fails to restore the desired records in case it is corrupted, damaged, or not updated. In such situations, the user need to opt for an advanced mysql database repair application that can repair its corrupt database and restore all the records on its desired location.

Below is the error message that pops up when your InnoDB database gets corrupted after MySQL Server crash:

InnoDB: Database page corruption on disk or a failed

InnoDB: file read of page 1294396.

InnoDB: You may have to recover from a backup.

031030 5:33:50 InnoDB: Page dump in ascii and hex (16384 bytes):

len 16384; hex 000000000013c03c0000 ......

....

....

After the above error message appears, the data stored in InnoDB database becomes inaccessible.

Resolution

To resolve the above error message and to access the data stored in tables, you will need to follow the below steps:

1.Add innodb_force_recovery=4 to etc/my.cnf configuration file.

2.Restart MySQL and dump all the tables.

3.Shutdown your database, erase the data directory, and mysql_install_db to create new MySQL tables.

4.Remove innodb_force_recovery=4 from etc/my.cnf configuration file.

5.Restart your database and restore everything from a backup.

The above command assures systematic repair of database after almost all logical corruption scenarios. However, the resolution fails to resolve the issue when you have not maintained any backup. To repair your database in case of no backup availability, you will need to opt for powerful mysql database recovery application.

Such repair applications scan and repair your database to the maximum possible level. These MySQL Repair tools are read-only in nature and perform repair without making any changes in original data. Built with interactive user-interface, these tools provide clear understanding of the repair process.

Database Recovery For MySQL is an effective and user-friendly application to repair corrupted MySQL database after most damage scenarios. Supported by both MyISAM and InnoDB MySQL database storage engines, the MySQL Repair utility is designed for Windows 7, Vista, XP, 2003 and 2000 operating systems.

by: Advika Singh




welcome to loan (http://www.yloan.com/) Powered by Discuz! 5.5.0