-
调整 GC 时间(重要!)
-- 导出前延长 GC 时间,避免数据被清理 SET GLOBAL tidb_gc_life_time = '24h'; -- 导出完成后恢复 SET GLOBAL tidb_gc_life_time = '10m'; -
降低并发数
dumpling --host 127.0.0.1 --port 4000 --user root --threads 4 --rows 100000 --filesize 256MiB --output /path/to/output -
分片导出
dumpling --where "id >= 1 AND id < 1000000" --output /path/to/output/part1