mydumper工具使用介绍

说明:本博文演示的mydumper是经过pingcap公司优化过的版本。特此感谢pingcap公司的贡献

下面开始介绍mydumper特点和参数使用

一、介绍

mydumper是针对mysql数据库备份的一个轻量级第三方的开源工具,备份方式为逻辑备份。它支持多线程,备份速度远高于原生态的mysqldump以及众多优异特性。因此该工具是DBA们的不二选择。本文主要描述该工具的使用方法并给出示例。
1、mydumper的特点
a、多线程逻辑备份,生产的多个备份文件
b、与mysqldump相同,备份时对 MyISAM 表施加FTWRL (FLUSH TABLES WITH READ LOCK), 会阻塞DML 语句
c、保证备份数据的一致性
d、支持文件压缩,支持导出binlog,支持多线程恢复,支持将备份文件切块
e、支持以守护进程模式工作,定时快照和连续二进制日志

二、mydumper语法

mydumper -u [USER] -p [PASSWORD] -h [HOST] -P [PORT] -t [THREADS] -b -c -B [DB] -o [directory]

注意:命令行之间要有空格 -u 用户名 -p 密码 之间必须有空格
参数说明
-B, --database 需要备份的库
-T, --tables-list 需要备份的表,多表,用逗号分隔
-o, --outputdir 输出文件的目录
-s, --statement-size 生成插入语句的字节数, 默认 1000000
-r, --rows 分裂成很多行块表
-c, --compress 压缩输出文件
-e, --build-empty-files 即使表没有数据,还是产生一个空文件
-x, --regex 正则表达式: ‘db.table’
-i, --ignore-engines 忽略的存储引擎,用逗号分隔
-m, --no-schemas 不导出表结构
-k, --no-locks 不执行共享读锁 警告:这将导致不一致的备份
-l, --long-query-guard 设置长查询时间,默认60秒
–kill-long-queries kill掉长时间执行的查询
-b, --binlogs 导出binlog
-D, --daemon 启用守护进程模式
-I, --snapshot-interval dump快照间隔时间,默认60s,需要在daemon模式下
-L, --logfile 日志文件
-h, --host The host to connect to
-u, --user Username with privileges to run the dump
-p, --password User password
-P, --port TCP/IP port to connect to
-S, --socket UNIX domain socket file to use for connection
-t, --threads 使用的线程数,默认4
-C, --compress-protocol 在mysql连接上使用压缩协议
-V, --version Show the program version and exit
-v, --verbose 更多输出, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2

三、mydumper的工作过程

a、连接目标数据库;
b、通过show processlist来判断是否有长查询,根据参数long-query-guard和kill-long-queries决定退出或杀掉长查询;
c、锁定myisam表,flush tables with read lock;针对innodb table开启事务,start transaction;
d、创建worker子线程,缺省为4个;
e、确定候选表,根据类别分别插入innodb_table,non_innodb_table以及table_schemas链表(表结构);
f、将候选表通过g_async_queue_push加入任务队列(队列最后元素是thread shutdown),由worker子线程从队列中读取表信息并执行数据导出
g、执行unlock tables,处理完myisam表后立即解锁,以减少锁定时间;
h、等待worker退出;

四、备份文件相关信息

a、所有的备份文件在一个目录中,未指定时为当前目录, 且自动生成备份日期时间文件夹,如export-20150703-145806
b、目录中包含一个 metadata 文件,该文件记录了备份时间点的二进制日志文件名,日志的写入位置
c、如果是在从库进行备份,还会记录备份时同步至主库的二进制日志文件及写入位置
d、每个表有两个备份文件:database.table-schema.sql 表结构文件,database.table.sql 表数据文件
e、如果对表文件分片,将生成多个备份数据文件,可以指定行数或指定大小分片

五、常用备份示例

1 备份单个库
#mydumper -u 用户名 -p 密码 -B 需要备份的库名 -o /tmp/bak

-B,需要备份的库 -o 输出文件的目录(备份输出指定的目录)

2 备份所有数据库:全库备份期间除了information_schema与performance_schema之外的库都会被备份
#mydumper -u 用户名 -p 密码 -o /tmp/bak
-o 输出文件的目录(备份输出指定的目录)

3 备份单表
#mydumper -u 用户名 -p 密码 -B 库名 -T 表名 -o /tmp/bak
-T 需要备份的表,多表用逗号分隔 -o指定输出备份文件路径

4 备份多表
#mydumper -u 用户名 -p 密码 -B 库名 -T 表1,表2 -o /tmp/bak

5、当前目录自动生成备份日期时间文件夹,不指定-o参数及值时默认为:export-20150703-145806
mydumper -u 用户名 -p 密码 -B 数据库名字 -T 表名

6、不带表结构备份表
#mydumper -u 用户名 -p 密码 -B 数据名字 -T 表名 -m
-m 不导出表结构

7、压缩备份及连接使用压缩协议(非本地备份时)
#mydumper -u 用户名 -p 密码 -B 数据库名字 -o /tmp/bak -c -C
-c, 压缩输出文件 -C 在mysql连接上使用压缩协议 -o 输出文件的目录(备份输出指定的目录)

8、备份特定表
#mydumper -u 用户名 -p 密码 -B 数据库名字 --regex=actor* -o /tmp/bak
只备份以actor*开头的表
-x 正则表达式: ‘db.table’ --regex

9过滤特定库,如本来不备份mysql及test库
#mydumper -u 用户名 -p 密码 -B 数据库名字 --regex ‘^(?!(mysql|test))’ -o /tmp/bak

10、基于空表产生表结构文件
#mydumper -u 用户名 -p 密码 -B 数据库名字 -T 空表 -e -o /tmp/bak
-e 即使表没有数据,还是产生一个空文件

12、备份时输出详细更多日志
#mydumper -u 用户名 -p 密码 -B 数据库名字 -T 空表 -v 3 -o /tmp/bak
-v 更多输出, 0 = silent, 1 = errors, 2 = warnings, 3 = info,详细输出 default 2

11、设置长查询的上限,如果存在比这个还长的查询则退出mydumper,也可以设置杀掉这个长查询
#mydumper -u leshami -p pwd -B sakila --long-query-guard 200 --kill-long-queries

13、导出binlog,使用-b参数,会自动在导出目录生成binlog_snapshot文件夹及binlog
#mydumper -u leshami -p pwd -P 3306 -b -o /tmp/bak

六、使用方法

备份出来的sql文件,文件以数据库开头.表名[-schema].sql,有schema的为表的表结构创建语句,没有的为表数据插入语句。

6.1备份单个库
mydumper 备份单个库:db_finance 提示:-B参数即为–database 只能指定一个库来备份,不能同时指定多个库来备份

[root@tidb01 ~]# /home/tidb/sync/tidb-enterprise-tools-latest-linux-amd64/bin/./mydumper -h 192.168.1.22  -u tidbuser -p '123456' -t 4 -F 64 -B db_finance --skip-tz-utc -o /tmp/db_finance 
[root@tidb01 ~]# 
[root@tidb01 ~]# 
[root@tidb01 ~]# ll /tmp/db_finance/*
-rw-r--r-- 1 root root       99 Feb  6 22:52 /tmp/db_finance/db_finance-schema-create.sql
-rw-r--r-- 1 root root     1709 Feb  6 22:52 /tmp/db_finance/db_finance.t_bank_cmbc-schema.sql
-rw-r--r-- 1 root root 36352376 Feb  6 22:52 /tmp/db_finance/db_finance.t_bank_cmbc.sql
-rw-r--r-- 1 root root      392 Feb  6 22:47 /tmp/db_finance/db_finance.test1-schema.sql
-rw-r--r-- 1 root root      142 Feb  6 22:52 /tmp/db_finance/metadata
[root@tidb01 db_finance]# du -sh *
4.0K	db_finance-schema-create.sql
4.0K	db_finance.t_bank_cmbc-schema.sql
35M	db_finance.t_bank_cmbc.sql
4.0K	db_finance.test1-schema.sql
4.0K	metadata
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.

metadata这个文件记录的是当里的binlog文件及pos,可以使用这个信息搭建slave.

[root@tidb01 db_finance]# cat metadata 
Started dump at: 2021-02-06 22:52:41
SHOW MASTER STATUS:
	Log: mysql-bin.000045
	Pos: 111886464
	GTID:
Finished dump at: 2021-02-06 22:52:41
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.

6.2 备份db_u8c库s_ship_end_order_sn,s_api_exception_info着2个表数据:

需要使用蚕食-T 或者–tables-list(包含建表sql和insert into sql)


[root@tidb01 db_finance]# cd  /home/tidb/sync/tidb-enterprise-tools-latest-linux-amd64/bin
[root@tidb01 bin]# ./mydumper -h 192.168.1.22  -u tidbuser -p '123456' -t 4 -F 64 -B db_u8c  --tables-list=s_ship_end_order_sn,s_api_exception_info --skip-tz-utc -o /tmp/db_u8c
[root@tidb01 bin]# 
[root@tidb01 bin]# 
[root@tidb01 bin]# ll /tmp/db_u8c/
total 45624
-rw-r--r-- 1 root root     1000 Feb  6 23:07 db_u8c.m_exception_msg-schema.sql
-rw-r--r-- 1 root root     1154 Feb  6 23:12 db_u8c.s_api_exception_info-schema.sql
-rw-r--r-- 1 root root    27056 Feb  6 23:12 db_u8c.s_api_exception_info.sql
-rw-r--r-- 1 root root       95 Feb  6 23:12 db_u8c-schema-create.sql
-rw-r--r-- 1 root root     2171 Feb  6 23:03 db_u8c.s_loan_bill-schema.sql
-rw-r--r-- 1 root root      866 Feb  6 23:06 db_u8c.s_loan_bill_sub-schema.sql
-rw-r--r-- 1 root root     2349 Feb  6 23:12 db_u8c.s_ship_end_order_sn-schema.sql
-rw-r--r-- 1 root root 46658264 Feb  6 23:12 db_u8c.s_ship_end_order_sn.sql
-rw-r--r-- 1 root root      142 Feb  6 23:12 metadata

[root@tidb01 bin]# grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_ship_end_order_sn.sql |wc -l
47
查看这个表db_u8c.s_ship_end_order_sn记录数:
root@test01 23:10:  [db_u8c]> select count(*) from s_ship_end_order_sn;
+----------+
| count(*) |
+----------+
|   174138 |
+----------+
1 row in set (0.25 sec)
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.

备份db_u8c库s_ship_end_order_sn,s_income_unconfirmed_unbilled这2个表数据:


[root@tidb01 bin]# ./mydumper -h 192.168.1.22  -u tidbuser -p '123456' -t 4 -F 64 -B db_u8c  --tables-list=s_ship_end_order_sn,s_income_unconfirmed_unbilled --skip-tz-utc -o /tmp/db_u8c

查看这个表  s_income_unconfirmed_unbilled记录数:
root@test01 23:22:  [db_u8c]> select count(*) from  s_income_unconfirmed_unbilled;
+----------+
| count(*) |
+----------+
|  1702398 |
+----------+
1 row in set (3.98 sec)

[root@tidb01 bin]# du -sh /tmp/db_u8c/*
4.0K	/tmp/db_u8c/db_u8c.m_exception_msg-schema.sql
4.0K	/tmp/db_u8c/db_u8c.s_api_exception_info-schema.sql
28K	/tmp/db_u8c/db_u8c.s_api_exception_info.sql
4.0K	/tmp/db_u8c/db_u8c-schema-create.sql
62M	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000002.sql
62M	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000003.sql
62M	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000004.sql
62M	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000005.sql
32M	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000006.sql
62M	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.00001.sql
4.0K	/tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled-schema.sql
4.0K	/tmp/db_u8c/db_u8c.s_loan_bill-schema.sql
4.0K	/tmp/db_u8c/db_u8c.s_loan_bill_sub-schema.sql
4.0K	/tmp/db_u8c/db_u8c.s_ship_end_order_sn-schema.sql
45M	/tmp/db_u8c/db_u8c.s_ship_end_order_sn.sql
4.0K	/tmp/db_u8c/metadata
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.

包含170万条记录的表导出来的inster sql数据表文件分成了6个,前5个文件大小都是62M,包含65个insert into的sql文件,最后一个sql文件是33个insert into sql,这个再loader恢复到库中的极大的加快了恢复的速度

[root@tidb01 bin]# grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.00001.sql|wc -l
65
[root@tidb01 bin]# grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000002.sql|wc -l
65
[root@tidb01 bin]#  grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000003.sql|wc -l
65
[root@tidb01 bin]#  grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000004.sql|wc -l
65
[root@tidb01 bin]#  grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000005.sql|wc -l
65
[root@tidb01 bin]#  grep 'INSERT INTO' /tmp/db_u8c/db_u8c.s_income_unconfirmed_unbilled.000000006.sql|wc -l
33
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.

6.3只备份db_u8c 库下以s_erp开头的表

[root@tidb01 bin]# ./mydumper -h 192.168.1.22  -u tidbuser -p '123456' -t 4 -F 64 -B db_u8c --regex="s_erp*" --skip-tz-utc -o /tmp/db_u8c
[root@tidb01 bin]# 
[root@tidb01 bin]# 
[root@tidb01 bin]# 
[root@tidb01 bin]# ll /tmp/db_u8c/
total 14760
-rw-r--r-- 1 root root       95 Feb  6 23:38 db_u8c-schema-create.sql
-rw-r--r-- 1 root root     2364 Feb  6 23:38 db_u8c.s_erp_return_ticket_bill-schema.sql
-rw-r--r-- 1 root root  3774166 Feb  6 23:38 db_u8c.s_erp_return_ticket_bill.sql
-rw-r--r-- 1 root root     1788 Feb  6 23:38 db_u8c.s_erp_return_ticket_bill_sub-schema.sql
-rw-r--r-- 1 root root 11319680 Feb  6 23:38 db_u8c.s_erp_return_ticket_bill_sub.sql
-rw-r--r-- 1 root root      142 Feb  6 23:38 metadata
[root@tidb01 bin]# du -sh  /tmp/db_u8c/*
4.0K	/tmp/db_u8c/db_u8c-schema-create.sql
4.0K	/tmp/db_u8c/db_u8c.s_erp_return_ticket_bill-schema.sql
3.7M	/tmp/db_u8c/db_u8c.s_erp_return_ticket_bill.sql
4.0K	/tmp/db_u8c/db_u8c.s_erp_return_ticket_bill_sub-schema.sql
11M	/tmp/db_u8c/db_u8c.s_erp_return_ticket_bill_sub.sql
4.0K	/tmp/db_u8c/metadata
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.

6.4 -B,–database只能指定一个库备份,如果需要同时备份多个数据库,需要下面的命令:

[root@tidb01 bin]# ./mydumper -h 192.168.1.22  -u tidbuser -p '123456'  -F 64 --regex '^(db001\.|db003\.|db_finance\.)' --skip-tz-utc -o /tmp/test01
[root@tidb01 bin]# 
[root@tidb01 bin]# ll /tmp/test01/
total 94968
-rw-r--r-- 1 root root       94 Feb  6 23:43 db001-schema-create.sql
-rw-r--r-- 1 root root      409 Feb  6 23:43 db001.test1-schema.sql
-rw-r--r-- 1 root root      240 Feb  6 23:43 db001.test1.sql
-rw-r--r-- 1 root root     1599 Feb  6 23:43 db001.t_exam_answer_detail-schema.sql
-rw-r--r-- 1 root root 59099894 Feb  6 23:43 db001.t_exam_answer_detail.sql
-rw-r--r-- 1 root root     1708 Feb  6 23:43 db001.t_exam_detail_bak-schema.sql
-rw-r--r-- 1 root root  1745000 Feb  6 23:43 db001.t_exam_detail_bak.sql
-rw-r--r-- 1 root root     1405 Feb  6 23:43 db001.t_ticket_info-schema.sql
-rw-r--r-- 1 root root       94 Feb  6 23:43 db003-schema-create.sql
-rw-r--r-- 1 root root       99 Feb  6 23:43 db_finance-schema-create.sql
-rw-r--r-- 1 root root     1709 Feb  6 23:43 db_finance.t_bank_cmbc-schema.sql
-rw-r--r-- 1 root root 36352376 Feb  6 23:43 db_finance.t_bank_cmbc.sql
-rw-r--r-- 1 root root      142 Feb  6 23:43 metadata

[root@tidb01 bin]# du -sh /tmp/test01/*
4.0K	/tmp/test01/db001-schema-create.sql
4.0K	/tmp/test01/db001.test1-schema.sql
4.0K	/tmp/test01/db001.test1.sql
4.0K	/tmp/test01/db001.t_exam_answer_detail-schema.sql
57M	/tmp/test01/db001.t_exam_answer_detail.sql
4.0K	/tmp/test01/db001.t_exam_detail_bak-schema.sql
1.7M	/tmp/test01/db001.t_exam_detail_bak.sql
4.0K	/tmp/test01/db001.t_ticket_info-schema.sql
4.0K	/tmp/test01/db003-schema-create.sql
4.0K	/tmp/test01/db_finance-schema-create.sql
4.0K	/tmp/test01/db_finance.t_bank_cmbc-schema.sql
35M	/tmp/test01/db_finance.t_bank_cmbc.sql
4.0K	/tmp/test01/metadata
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.

或者下面的命令:

[root@tidb01 bin]# ./mydumper -h 192.168.1.22  -u tidbuser -p '123456'  -F 64 --regex "db001.*|db003.*|db_finance.*" --skip-tz-utc -o /tmp/test01 
[root@tidb01 bin]# 
[root@tidb01 bin]# 
[root@tidb01 bin]# 
[root@tidb01 bin]# du -sh /tmp/test01/*
4.0K	/tmp/test01/db001-schema-create.sql
4.0K	/tmp/test01/db001.test1-schema.sql
4.0K	/tmp/test01/db001.test1.sql
4.0K	/tmp/test01/db001.t_exam_answer_detail-schema.sql
57M	/tmp/test01/db001.t_exam_answer_detail.sql
4.0K	/tmp/test01/db001.t_exam_detail_bak-schema.sql
1.7M	/tmp/test01/db001.t_exam_detail_bak.sql
4.0K	/tmp/test01/db001.t_ticket_info-schema.sql
4.0K	/tmp/test01/db003-schema-create.sql
4.0K	/tmp/test01/db_finance-schema-create.sql
4.0K	/tmp/test01/db_finance.t_bank_cmbc-schema.sql
35M	/tmp/test01/db_finance.t_bank_cmbc.sql
4.0K	/tmp/test01/metadata
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.

6.5采用参数–threads= 提高备份的并发线程数:

6.6压缩备份及连接使用压缩协议(非本地备份时)
#mydumper -u 用户名 -p 密码 -B 数据库名字 -o /tmp/bak -c -C

-c, 压缩输出文件 -C 在mysql连接上使用压缩协议 -o 输出文件的目录(备份输出指定的目录)

6.7 排除掉不需要备份的库:


例如:--regex '^(?!(mysql|test))' 
排除掉不需要备份的库mysql,test 这2个库

[root@cb-cert01 ~]# mysql -e "show databases;"
+-----------------------+
| Database              |
+-----------------------+
| information_schema    |
| db001                 |
| db003                 |
| db_finance            |
| db_mall_bill_20201209 |
| db_mall_bill_test01   |
| db_u8c                |
| dba_check             |
| mysql                 |
| performance_schema    |
| sys                   |
+-----------------------+
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.

排除掉不需要备份的库:db_mall_bill_20201209|db_u8c|db_mall_bill_test01|mysql|sys|information_schema|performance_schema

[root@tidb01 bin]# ./mydumper -h 192.168.1.22  -u tidbuser -p '123456'  -F 64 --regex '^(?!(db_mall_bill_20201209|db_u8c|db_mall_bill_test01|mysql|sys|information_schema|performance_schema ))' --skip-tz-utc -o /tmp/test01
[root@tidb01 bin]# 
[root@tidb01 bin]# du -sh /tmp/test01/*
4.0K	/tmp/test01/db001-schema-create.sql
4.0K	/tmp/test01/db001.test1-schema.sql
4.0K	/tmp/test01/db001.test1.sql
4.0K	/tmp/test01/db001.t_exam_answer_detail-schema.sql
57M	/tmp/test01/db001.t_exam_answer_detail.sql
4.0K	/tmp/test01/db001.t_exam_detail_bak-schema.sql
1.7M	/tmp/test01/db001.t_exam_detail_bak.sql
4.0K	/tmp/test01/db001.t_ticket_info-schema.sql
4.0K	/tmp/test01/db003-schema-create.sql
4.0K	/tmp/test01/dba_check.dsns-schema.sql
4.0K	/tmp/test01/dba_check.dsns.sql
4.0K	/tmp/test01/dba_check-schema-create.sql
4.0K	/tmp/test01/dba_check.test01_ptchecksums-schema.sql
4.0K	/tmp/test01/dba_check.test01_ptchecksums.sql
4.0K	/tmp/test01/db_finance-schema-create.sql
4.0K	/tmp/test01/db_finance.t_bank_cmbc-schema.sql
35M	/tmp/test01/db_finance.t_bank_cmbc.sql
4.0K	/tmp/test01/metadata
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.

参考文档:
 https://developer.aliyun.com/article/45741
 https://docs.pingcap.com/zh/tidb/v3.0/mydumper-overview#并发-dump-相关参数

演示到此结束,方便自己工作中查阅以及帮助有需要的网友

posted @ 2021-02-07 00:21  勤奋的蓝猫  阅读(14)  评论(0编辑  收藏  举报  来源