Bug #1451 | Export Table Creation - Error with Foreign Key | ||
---|---|---|---|
Submitted: | 30 Sep 2003 16:24 | Modified: | 3 Oct 2003 1:20 |
Reporter: | Andrés Montañez | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 4.0.13 | OS: | |
Assigned to: | Heikki Tuuri | CPU Architecture: | Any |
[30 Sep 2003 16:24]
Andrés Montañez
[2 Oct 2003 21:57]
MySQL Verification Team
This is a documented issue on InnoDB at section FOREIGN KEY constraints. I am assign Heikki for further comments if necessary: Below the text regarding that: ------------------------------------------------------------------------------ If you want to import several dumps of tables, but the dumps are not correctly ordered for foreign keys, starting from 3.23.52 and 4.0.3 you can turn the foreign key checks off for a while in the import session: SET FOREIGN_KEY_CHECKS=0; This allows you to import the tables in any order, and also speeds up the import. ------------------------------------------------------------------------------
[3 Oct 2003 1:20]
Heikki Tuuri
Hi! Mysql-Front was written by Ansgar Becker. We cannot fix problems with it. Generally, the setting SET FOREIGN_KEY_CHECKS=0; is the way to import tables dumps. Best regards, Heikki