使用select into outfile xxx , load data infile xxx
例如 :
SELECT * into outfile '/tmp/out.txt' FROM `db1`.`test`;
load data infile '/tmp/out.txt' into table `db2`.`test`;
速度非常快,比insert快N+++倍