The MySQL server suddenly stopped working, the service would be intermittent, I couldn't do a backup because the service wasn't running, so the best I could do was copy the entire DATA folder.
Also, I had an older backup, so using that along with the ibd file restored all the tables except the last one, which says:
ERROR 1808 (HY000): Schema mismatch (Clustered index validation failed. Because the .cfg file is missing, table definition of the IBD file could be different. Or the data file itself is already corrupted.)
I do not know what to do.
I think the only thing you can do is rely on the table version in the backup. You cannot restore a copied
.ibd
file.The error message indicates that one of two things has occurred:
The table structure has changed since the backup, so the
.ibd
file no longer matches the metadata stored in the data dictionary. InnoDB is in the same boat as you when the contents of a tablespace file don't match the metadata: "I don't know what to do."https://dev.mysql.com/doc /refman/en/point-in-time-recovery.html