Here you have few common error messages that will help the user to identify the corruption in MySQL database:
• 126: Index file is crashed or Wrong file format
• 127: Record file is crashed
• 132: Old database file
• 134: Record was already deleted (or record file crashed)
• 135: No more room in record file
• 136: No more room in index file
• 141: Duplicate unique key or constraint on write or update
• 144: Table is crashed and last repair failed
• 145: Tables was marked as crashed and should be repaired
Before getting into its repair process it is very important to know the causes behind corruption so that in future if you face the same issue in your database, you will know how to handle the situation in better way.
Causes:
- Killed MySQL Database process in between
- Damaged operating system.
- Bugs in MySQL.
- Hardware failure
- Corrupt or damage structure of metadata.
- Damaged ibdata file.
- Improper system, shut down
- Virus attack can also make your database inaccessible
- Inappropriate or abrupt MySQL Server shutdown.
- Corrupt or damaged .myd, .myi files or .frm.
- Connectivity problem while establishing the connection with database provider
Also read: Repair Table corruption in MySQL Database
- To check the level of corruption you need to run CHECK TABLE
- Now, to repair the corrupted, damaged or inaccessible table run REPAIR TABLE command.
- But in case if the above repair process fails to resolve the error then the last option left with you is to use a third party repair tool. For such situation it is advised to use a third party tool that can easily repair MySQL Database Corruption.
0 comments:
Post a Comment