我的解决办法是运行语句SET foreign_key_checks = 0;接触约束; 参考博客https://blog.csdn.net/u010429286/article/details/79042886