Bug #8825 | Fail to remove foreign key constraint | ||
---|---|---|---|
Submitted: | 26 Feb 2005 22:39 | Modified: | 27 Feb 2005 6:59 |
Reporter: | Fritjof Andersson | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 4.0.22 | OS: | Linux (Linux) |
Assigned to: | Jani Tolonen | CPU Architecture: | Any |
[26 Feb 2005 22:39]
Fritjof Andersson
[27 Feb 2005 6:59]
Heikki Tuuri
Fritjof, MySQL does a full recreate of the table in ALTER. There is probably some other user who has locked rows in the tables that this one references. You can use SHOW INNODB STATUS or innodb_lock_monitor to find out. Workaround: do not allow other users to have uncommitted transactions on relevant tables. Jani Tolonen is working on an intelligent ALTER TABLE. That will remove this problem in 5.1. Regards, Heikki