Bug #84853 | Weird error message "ERROR 1025 (HY000): Error on rename of '...' to '...' (errn | ||
---|---|---|---|
Submitted: | 7 Feb 2017 5:25 | ||
Reporter: | Csongor Halmai | Email Updates: | |
Status: | Open | Impact on me: | |
Category: | MySQL Server | Severity: | S4 (Feature request) |
Version: | 5.5.51 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | drop colum foreign key error message |
[7 Feb 2017 5:25]
Csongor Halmai
[7 Feb 2017 21:01]
MySQL Verification Team
looks better in current versions. I suppose in 5.5, SHOW ENGINE INNODB STATUS will show the foreign key error detail. mysql> ALTER TABLE users DROP COLUMN country_id; ERROR 1553 (HY000): Cannot drop index 'dummy': needed in a foreign key constraint mysql> select version(); +-----------------+ | version() | +-----------------+ | 8.0.1-dmr-debug | +-----------------+ 1 row in set (0.00 sec)
[8 Oct 2019 18:35]
Federico Razzoli
I think the bug is fixed. In 8.0 I get: ERROR 1828 (HY000): Cannot drop column 'country_id': needed in a foreign key constraint 'dummy'