Bug #7584 | Constraints are preserved even if table engine is changed | ||
---|---|---|---|
Submitted: | 29 Dec 2004 22:55 | Modified: | 30 Dec 2004 0:24 |
Reporter: | Luca Lucchetta | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 4.1.8 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[29 Dec 2004 22:55]
Luca Lucchetta
[30 Dec 2004 0:24]
Heikki Tuuri
Luca, this is a duplicate of bug #5574. We should block ALTER TABLE ... TYPE=MyISAM if the table takes part in FOREIGN KEY constraints. Regards, Heikki
[30 Dec 2004 7:33]
Luca Lucchetta
Heikki, is there a way I can follow to fix my problem, so I can create such InnoDB tables ? Thank you Luca
[30 Dec 2004 12:01]
Luca Lucchetta
To repair my databases I followed the following steps: 1- dump all databases in a text file (about 4 gb of data) 2- uninstall MySQL, deleting also the data directory 3- reinstall MySQL 4- import data from the text file built at step 1 Now all seems to work. In my opinion you should fix this bug asap: it can corrupt data. Regards, Luca