Re: FK problem: ibd file does not currently exist
Thanks for the "SHOW INNODB STATUS" hint.
mysqldump dbname > all.sql
showed that the table referenced by my foreign key was a MyISAM table, not a InnoDB table.
To fix it, in all.sql I:
- globally substituted "InnoDB" for "MyISAM";
- added "SET FOREIGN_KEY_CHECKS=0;" at the top
- added "SET FOREIGN_KEY_CHECKS=1;" at the bottom
Then I recreated the database with:
mysql dbname < all.sql
I still don't have any .idb file (mentioned in the "SHOW INNODB STATUS" error message), but its fixed.
Subject
Views
Written By
Posted
5325
April 26, 2005 12:30PM
3106
May 11, 2005 12:45PM
Re: FK problem: ibd file does not currently exist
2714
July 06, 2005 08:45PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.