Bug #89441 | Foreign keys constraints ignored after RENAME TABLE | ||
---|---|---|---|
Submitted: | 26 Jan 2018 19:20 | Modified: | 1 Nov 2018 13:21 |
Reporter: | Carlos Salguero | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S1 (Critical) |
Version: | 8.0.4-rc, 8.0.2-dmr, 8.0.3-rc | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[26 Jan 2018 19:20]
Carlos Salguero
[29 Jan 2018 5:45]
MySQL Verification Team
Hello Carlos, Thank you for the report and test case. Confirmed that this is observed since 8.0.2-dmr. Thanks, Umesh
[13 Jun 2018 19:27]
Carlos Salguero
Hi, Is there any news about this bug?
[4 Oct 2018 0:48]
Bin Su
Posted by developer: As mentioned in the email named "Fixing bug #27453180 "FOREIGN KEYS CONSTRAINTS IGNORED AFTER RENAME TABLE".", re-assign this to Anna, thanks Anna.
[1 Nov 2018 13:21]
Daniel Price
Posted by developer: Fixed as of the upcoming 8.0.14 release, and here's the changelog entry: Foreign key constraints were ignored after a RENAME TABLE operation.
[7 Jun 2023 18:17]
Muhammad Usman
Hi Team, We are getting below error SELECT /*!40001 SQL_NO_CACHE */ `mt_message_id` FROM `smpp_server`.`mt_message` FORCE INDEX(`PRIMARY`) WHERE ((`mt_message_id` >= ?)) AND (mt_message_id > '4118849778') ORDER BY `mt_message_id` LIMIT ?, 2 /*next chunk boundary*/ 2023-06-07T20:40:41 Copied rows OK. 2023-06-07T20:40:41 Max rows for the rebuild_constraints method: 4000 Determining the method to update foreign keys... 2023-06-07T20:40:41 `smpp_server`.`mo_message`: too many rows: 20455781; must use drop_swap --alter-foreign-keys-method=drop_swap doesn't work with MySQL 8.0+ See https://bugs.mysql.com/bug.php?id=89441 2023-06-07T20:40:41 Dropping triggers... DROP TRIGGER IF EXISTS `smpp_server`.`pt_osc_smpp_server_mt_message_del` DROP TRIGGER IF EXISTS `smpp_server`.`pt_osc_smpp_server_mt_message_upd` DROP TRIGGER IF EXISTS `smpp_server`.`pt_osc_smpp_server_mt_message_ins` 2023-06-07T20:40:41 Dropped triggers OK. Not dropping the new table `smpp_server`.`_mt_message_new` because --swap-tables failed. To drop the new table, execute: DROP TABLE IF EXISTS `smpp_server`.`_mt_message_new`; `smpp_server`.`mt_message` was not altered. "INFO-690647788.log" 107L, 10935C Our Mysql version is mysql Ver 8.0.30-22 for Linux on x86_64 (Percona Server (GPL), Release 22, Revision 7e301439b65) Please help to fix it. Thank you. BR//Muhammad Usman
[7 Jun 2023 18:19]
Muhammad Usman
Subscribing to email updates on this bug report.
[7 Jun 2023 18:50]
Muhammad Usman
And Percona Toolkit version is package Percona::Toolkit; our $VERSION = '3.3.1';