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.
我有一个包含所有数据库的完整 mysql 备份,但只想通过 shell 导入其中一个。所以我使用“-D”选项来指定我要导入的数据库。但是我怎样才能以这种方式禁用外键约束呢?
转储文件大约 2GB 大,所以我不能只在文件开头写命令。
任何想法?