【求助帖】dumpling导出大表(3G以上)报如下错误,请查看正文,谢谢!!!

  1. 调整 GC 时间(重要!)

    -- 导出前延长 GC 时间,避免数据被清理
    SET GLOBAL tidb_gc_life_time = '24h';
    -- 导出完成后恢复
    SET GLOBAL tidb_gc_life_time = '10m';
    
  2. 降低并发数

    dumpling      --host 127.0.0.1      --port 4000      --user root      --threads 4      --rows 100000      --filesize 256MiB      --output /path/to/output
    
  3. 分片导出

    dumpling      --where "id >= 1 AND id < 1000000"      --output /path/to/output/part1