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]
Shane Bester
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'
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
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.