Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个转储文件,这样当我执行它时,我没有依赖问题
两个表可以使用 FK 相互引用,因此并不总是可以创建和插入“父级优先”。
使用mysqldump。它将在导入数据之前禁用外键并在之后启用。(这也快得多)。