我安装了一个wordpress插件,我想立即将其删除以删除所有数据。所以我去了phpmyadmin删除所有数据但不幸的是我只能删除2个表(总共5个)。当我删除此表作为示例时,我收到此错误。
#1451 - Cannot delete or update a parent row: a foreign key constraint fails (`f1zone_news`.`wp_msr_driver_races_for`, CONSTRAINT `wp_msr_driver_races_for_ibfk_3` FOREIGN KEY (`engine_id`) REFERENCES `wp_msr_engine` (`id_engine`) ON DELETE NO ACTION ON UPDATE NO ACTION)
如何删除所有表格?
谢谢!
答案 0 :(得分:2)
First you have to delete record from child table
then you can update or delete record from parent table.