mysql> SET FOREIGN_KEY_CHECKS = 0; 修改KEY值,使此库变为可直接删除状态
Query OK, 0 rows affected (0.00 sec)
mysql> delete from instances where uuid="3ab73261-82ce-4b9a-9a1c-519624e19dc2";
Query OK, 1 row affected (0.03 sec)
mysql> SET FOREIGN_KEY_CHECKS = 1; 删除后,修改KEY值,使此库变为不可直接删除状态
Query OK, 0 rows affected (0.00 sec)
本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1543161
原文:http://zhanguo1110.blog.51cto.com/5750817/1543161