【TiDB入门】TiDB DM 数据同步TiUP Dumpling
tiup install dumpling
1.导出为本地文件
- 执行命令
tiup dumpling -h 127.0.0.1 -P 3306 -u root -p '******' -t 16 -r 200000 -F 256MiB -B books -o /Users/opkcloud/Documents/tidb/dumpling/books
2.导出为S3
[Minio安装部署
]:部署方法
- 执行命令
tiup dumpling -h ${ip} -P 3306 -u root -p '******' -t 16 -r 200000 -F 256MiB -B books -o 's3://bucket-hello/sql-backup' --s3.endpoint "http://${ip}:9000"
3.导出为csv
- 执行命令
tiup dumpling -h ${ip} -P 3306 -u root -p '******' -t 16 -r 200000 -F 256MiB -B books -o /root/tidb/dumpling/books_csv --filetype csv
4.导出为sql
- 执行命令
tiup dumpling -h ${ip} -P 3306 -u root -p '******' -t 16 -r 200000 -F 256MiB -B books -o /root/tidb/dumpling/books_sql_script --filetype sql