openstack删除数据库中instance关联表(没验证)
来源:互联网 发布:曼哈顿软件 编辑:程序博客网 时间:2024/05/21 21:44
http://download.csdn.net/download/sweetburden2011/4492336
错误操作:mysql> delete from instances where id = 7;
错误提示: ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails (`nova`.`security_group_instance_association`, CONSTRAINT `security_group_instance_association_ibfk_2` FOREIGN KEY (`instance_id`) REFERENCES `instances` (`id`))
解决方案:
mysql> delete from security_group_instance_association where id=7;
Query OK, 1 row affected (0.06 sec)
mysql> delete from instance_info_caches where id=7;
Query OK, 1 row affected (0.06 sec)
mysql> delete from instances where id = 7;
Query OK, 1 row affected (0.05 sec)
- openstack删除数据库中instance关联表(没验证)
- 手工从数据库中删除openstack的instance
- openstack手动删除僵尸instance
- OpenStack从数据库中删除掉Compute节点(hypervisor)
- OpenStack手动从数据库中删除实例
- OpenStack手动从数据库中删除实例
- OpenStack手动从数据库中删除实例
- 手动删除数据库中openstack的实例
- openstack 删除僵尸实例 删除实例 删除instance(非屏蔽外键)
- openstack 删除僵尸实例 删除实例 删除instance(非屏蔽外键)
- mysql 数据库 多表关联删除
- 解除openstack中instance对IP的限制(在虚拟机中飘VIP)
- openstack 数据库实例删除脚本
- Openstack Nova(四)----Instance 创建(Overview)
- Openstack Nova(八)----Instance 创建(流水线)
- 删除两表有关联的数据/遍历数据库中所有的表
- MySQL中删除表的关联关系
- 验证分区表中添加或删除空分区对全局索引没影响
- 连接池
- sqlite数据库处理时间问题 和 日期时间函数
- Sudoku解题算法
- Deformable Part Model的学习
- JQuery.BlockUI
- openstack删除数据库中instance关联表(没验证)
- makefile模板文件
- 简单数据绑定
- how to invisible the plot image in matlab
- hdu 2569 彼岸
- java.lang.Class Cast Exception: android.widget.HeaderViewListAdapter
- 最简单的方式使用Discriminatively Trained Deformable Part Models训练自己的模型
- The Difference of Looking for Job and Waiting for Job
- 如果在外部PHP文件使用joomla的类库