Description:
Dropping database fails with the following error. I login as root.
mysql> drop database VIDDER;
ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails
mysql log:
130501 11:36:58 129 Connect root@localhost on
129 Query select @@version_comment limit 1
130501 11:37:02 129 Query show databases
130501 11:37:08 129 Query drop database VIDDER
130501 11:37:13 129 Quit
There is no other logs that contain this "drop database VIDDER;" transaction. Attaching mysql log. TB-122.log
--------------------------------
root@TB-122:/usr/local/mysql/data# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 129
Server version: 5.6.10-ndb-7.3.1-cluster-gpl-log MySQL Cluster Community Server (GPL)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| VIDDER |
| mysql |
| ndbinfo |
| performance_schema |
| test |
+--------------------+
6 rows in set (0.01 sec)
mysql> drop database VIDDER;
ERROR 1217 (23000): Cannot delete or update a parent row: a foreign key constraint fails
mysql> quit
How to repeat:
Cannot drop database even as root.