Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.5.34
-
Fix Version/s: 5.5.35
-
Component/s: None
-
Labels:None
Description
Copying host.frm from and old system to MariaDB gave the following error one access, check or repair:
Incorrect key file for table 'host'; try to repair it
This error doesn't tell what is wrong or how to fix it.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
I have fixed this by adding a new handler error message when the .frm and storage engine definition differs:
Incompatible key or row definition between the MariaDB .frm file and the information in the storage engine. You have to dump and restore the table to fix this
In addition I fixed that REPAIR TABLE .. USE_FRM will fix old tables with same storage format between versions (no VARCHAR fields).