MySQL 8.0 物理备份xtrabackup简介

概述

percona xtrabackup 8.0概述:
0.1
1.移除了innobackupex命令
2.由于新的MySQL重做日志和数据字典格式,8.0版本只支持mysql8.0和percona8.0
3.早于mysql8.0的版本需要使用xtrabackup2.4备份和恢复.
0.2 支持的操作系统:
RHEL / Centos 6.x
RHEL / Centos 7.x
Ubuntu 14.04 Trusty *
Ubuntu 16.04 Xenial
Ubuntu 18.04 Bionic
Debian 8 Jessie *
Debian 9 Stretch

文章目录

  • 概述
  • 一.xtrabackup 安装
  • 二.xtrabackup用法介绍
    • 2.1 xtrabackup参数介绍
    • 2.2 xtrabackup备份和恢复演练一例
      • 2.2.1 备份
      • 2.2.2 恢复
  • 参考文献:

一.xtrabackup 安装

MySQL版本 8.0.20
xtrabackup版本 8.0.13

MySQL 8.0.20安装xtrabackup
https://www.percona.com/downloads/Percona-XtraBackup-LATEST/

MySQL 8.0 物理备份xtrabackup简介_第1张图片

yum -y install percona-xtrabackup-80-8.0.13-1.el7.x86_64.rpm
-- 遇到如下报错
Public key for Percona-Server-shared-56-5.6.49-rel89.0.1.el7.x86_64.rpm is not installed
 Failing package is: Percona-Server-shared-56-5.6.49-rel89.0.1.el7.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
-- 解决方案
yum update percona-release -y
yum update -y
yum -y install percona-xtrabackup-80-8.0.13-1.el7.x86_64.rpm
[root@**** mysql]# xtrabackup --version
xtrabackup: recognized server arguments: --datadir=/var/lib/mysql 
xtrabackup version 8.0.13 based on MySQL server 8.0.20 Linux (x86_64) (revision id: fdf0f4c)

二.xtrabackup用法介绍

2.1 xtrabackup参数介绍

参数值 参数用途
–print-defaults 输出mysql实例的参数配置信息
–no-defaults 不从任何配置文件中读取参数信息,除了登录文件
–defaults-file=# 仅从指定的配置文件读取参数
–defaults-extra-file=# 读取额外的配置信息文件
–defaults-group-suffix=# Also read groups with concat(group, suffix)
–login-path=# 读取登录文件的路径
-v, --version 打印 xtrabackup版本信息
–target-dir=name 备份文件的目录,默认为当前目录xtrabackup_backupfiles/
–backup 备份操作,备份到target-dir指定的目录
–stats 计算datadir的统计信息(推荐mysqld离线)calc statistic of datadir (offline mysqld is recommended)
–prepare 指定备份的prepare阶段 prepare a backup for starting mysql server on the backup.
–export 当在prepare阶段创建文件到另外的一个数据库 create files to import to another database when prepare.
–apply-log-only 一般情况下,在备份完成后,数据尚且不能用于恢复操作,
因为备份的数据中可能会包含尚未提交的事务或已经提交但尚未同步至数据文件中的事务。
因此,此时数据 文件仍处理不一致状态。
–apply-log的作用是通过回滚未提交的事务及同步已经提交的事务至数据文件使数据文件处于一致性状态。
–print-param 输出mysqld copyback必须的参数print parameter of mysqld needed for copyback.
–use-memory=# 备份的时候指定的内存,该选项表示和–apply-log选项一起使用,
prepare 备份的时候,xtrabackup做crash recovery分配的内存大小,单位字节。
也可(1MB,1M,1G,1GB),推荐1G。用于替代buffer_pool_size
–throttle=# 和–backup一起使用,指定每秒操作读写对的数量。
–log[=name] 忽略MySQL选项兼容性的选项
–log-copy-interval=# 日志复制线程完成的检查之间的时间间隔(以毫秒为单位,默认为1秒)。
–extra-lsndir=name 和–backup一起使用,在当前目录保存一份额外的xtrabackup_checkpoints文件
–to-archived-lsn=# 指定prepare备份时apply事务日志的LSN,只能和xtarbackup --prepare选项一起用。
–tables=name 通过正则表达式过滤表
–tables-file=name 按文件中的精确的database.table名称列表进行筛选。
–databases=name 按照数据库进行过滤
–databases-file=name 按照文件中的数据进行过滤
–tables-exclude=name 操作方式和–tables一样,但是匹配的表名将不备份,此参数的优先级高于–tables.
–databases-exclude=name 操作方式和–databases一样,但是匹配的库名将不被备份,优先级高于–databases.
–create-ib-logfile 此参数当前不生效,无效参数
–stream=name 该选项表示流式备份的格式,backup完成之后以指定格式到STDOUT,目前只支持tar(8.0版本仅支持)和xbstream
–decompress 该选项表示解压–compress选项压缩的文件,解压.qp扩展文件。
–compress[=name] 压缩所有输出数据,包括事务日志文件和元数据文件,通过指定的压缩算法,
目前唯一支持的算法是quicklz.结果文件是qpress归档格式,
每个xtrabackup创建的*.qp文件都可以通过qpress程序提取或者解压缩
–compress-threads=# 备份压缩的并行线程,默认为1.并行压缩(‘compress-threads’)可以和并行文件拷贝(‘parallel’)一起使用。
例如:’–parallel=4 --compress --compress-threads=2’会创建4个IO线程读取数据并通过管道传送给2个压缩线程。
–compress-chunk-size=# 压缩线程工作buffer的字节大小,默认是64K
–encrypt=name 该选项表示通过ENCRYPTION_ALGORITHM的算法加密innodb数据文件的备份,
目前支持的算法有ASE128,AES192,AES256。
–encrypt-key=name 该选项使用合适长度加密key,因为会记录到命令行,所以不推荐使用。
–encrypt-key-file=name 该选项表示文件必须是一个简单二进制或者文本文件,
加密key可通过以下命令行命令生成:openssl rand -base64 24。
–encrypt-threads=# 该选项表示并行加密的worker线程数量,默认为1.
–encrypt-chunk-size=# 该选项表示每个加密线程worker buffer的大小,单位是字节,默认是64K。
–decrypt=name 该选项表示解密通过–encrypt选项加密的.xbcrypt文件。
–remove-original 当删除解密和解压完后删除 .qp and .xbcrypt 文件
–rebuild_indexes 在apply事务日志之后重建innodb辅助索引,只有和–prepare一起才生效。
–rebuild_threads=# 在紧凑备份重建辅助索引的线程数,只有和–prepare和rebuild-index一起才生效。
–close-files 该选项表示关闭不再访问的文件句柄,
当xtrabackup打开表空间通常并不关闭文件句柄目的是正确的处理DDL操作。
如果表空间数量巨大,这是一种可以关闭不再访问的文件句柄的方法。使用该选项有风险,会有产生不一致备份的可能。
–core-file Write core on fatal signals
–copy-back 做数据恢复时将备份数据文件拷贝到MySQL服务器的datadir。
–move-back 这个选项与–copy-back相似,唯一的区别是它不拷贝文件,而是移动文件到目的地。
这个选项移除backup文件,用时候必须小心。使用场景:没有足够的磁盘空间同事保留数据文件和Backup副本
注意:
1.datadir目录必须为空。除非指定innobackupex --force-non-empty-directorires选项指定,否则–copy-backup选项不会覆盖
2.在restore之前,必须shutdown MySQL实例,你不能将一个运行中的实例restore到datadir目录中
3.由于文件属性会被保留,大部分情况下你需要在启动实例之前将文件的属主改为mysql,这些文件将属于创建备份的用户
–galera-info 该选项表示生成了包含创建备份时候本地节点状态的文件xtrabackup_galera_info文件,该选项只适用于备份PXC。
–slave-info 该选项表示对slave进行备份的时候使用,打印出master的名字和binlog pos,
同样将这些信息以change master的命令写入xtrabackup_slave_info文件。可以通过基于这份备份启动一个从库。
–no-lock 该选项表示关闭FTWRL的表锁,只有在所有表都是Innodb表并且不关心backup的binlog pos点,
如果有任何DDL语句正在执行或者非InnoDB正在更新时(包括mysql库下的表),都不应该使用这个选项,
后果是导致备份数据不一致,如果考虑备份因为获得锁失败,可以考虑–safe-slave-backup立刻停止复制线程。
–lock-ddl 若mysql serve支持在备份支持发出LOCK TABLES FOR BACKUP指令阻止所有的DDL操作。
–lock-ddl-timeout=# 若在指定时间内未返回值则终止备份。
–lock-ddl-per-table 在xtrabackup开始复制之前锁定每个表的DDL直到备份完成
–safe-slave-backup 该选项表示为保证一致性复制状态,这个选项停止SQL线程并且等到show status中的
slave_open_temp_tables为0的时候开始备份,
如果没有打开临时表,bakcup会立刻开始,否则SQL线程启动或者关闭知道没有打开的临时表。
–safe-slave-backup-timeout=# 如果slave_open_temp_tables在–safe-slave-backup-timeount(默认300秒)秒
之后不为0,从库sql线程会在备份完成的时候重启。
–rsync 该选项表示通过rsync工具优化本地传输,当指定这个选项,
innobackupex使用rsync拷贝非Innodb文件而替换cp,
当有很多DB和表的时候会快很多,不能–stream一起使用。
–force-non-empty-directories 指定该参数时候,使得 --copy-back或–move-back选项转移文件到非空目录,
已存在的文件不会被覆盖。如果–copy-back和–move-back文件需要
从备份目录拷贝一个在datadir已经存在的文件,会报错失败。
–no-version-check 该选项关闭版本检查,当–version-check选项开启的时候。
–tables-compatibility-check 此选项开启表存储引擎兼容性告警,默认开启。可使用–skip-tables-compatibility-check关闭。
–no-backup-locks 该选项在backup阶段控制锁,替换FLUSH TABLES WITH READ LOCK命令。
默认开启,关闭需使用参数–no-backup-locks。
当mysql服务器不支持backup locks时候此参数无效。
-u, --user=name 备份的用户名
-H, --host=name 备份的IP地址
-P, --port=# 备份的端口
-p, --password[=name] 备份时用户的密码
-S, --socket=name 备份时连接的unix操作系统的socket文件
-h, --datadir=name 数据恢复时候的数据目录.从my.cnf中读取,或者命令行指定。
-t, --tmpdir=name 当使用–print-param指定的时候打印出正确的tmpdir参数。
用于存储临时文件的路径,在轮训模式下可以指定多个路径,使用英文的:分隔
–parallel=# 指定备份时拷贝多个数据文件并发的进程数,默认值为1。
–log-bin[=name] binlog的日志序列
–incremental-lsn=name 和–backup一起使用。
–incremental-basedir=name 和–backup一起使用,仅拷贝.ibd中新增的数据到指定路径,增量备份.
–incremental-dir=name 和–prepare一起使用,将.delta文件和logfile保存在指定的路径.
–incremental-force-scan 该选项表示创建一份增量备份时,强制扫描所有增量备份中的数据页
–incremental-history-name 该选项表示存储在PERCONA_SCHEMA.xtrabackup_history基于增量备份的历史记录的名字。
Percona Xtrabackup搜索历史表查找最近(innodb_to_lsn)成功备份
并且将to_lsn值作为增量备份启动出事lsn.
与innobackupex–incremental-history-uuid、–incremental-basedir、–incremental-lsn互斥。
如果没有检测到有效的lsn,xtrabackup会返回error。
和选项–incremental一起使用。
–incremental-history-uuid 该选项表示存储在percona_schema.xtrabackup_history基于增量备份的特定历史记录的UUID。
和选项–incremental一起使用。

innobackupex遗留参数

参数值 参数用途
–ftwrl-wait-query-type 该选项表示获得全局锁之前允许那种查询完成,默认是ALL,可选update。
–ftwrl-wait-threshold 该选项表示检测到长查询,单位是秒,表示长查询的阈值。
若–ftwrl-wait-timeout=0此参数无效,默认值为60s。
–ftwrl-wait-timeout=# 此选项指定innobackupex在运行之前应等待阻止FTWRL的查询的时间(以秒为单位)。
如果超时到期时仍有此类查询,则innobackupex将终止并显示错误。
默认值为0,在这种情况下,innobackupex不会等待查询完成并立即启动FTWRL。
–kill-long-queries-timeout 该选项表示从开始执行FLUSH TABLES WITH READ LOCK到kill掉阻塞它的这些查询之间等待的秒数。
默认值为0,不会kill任何查询,使用这个选项xtrabackup需要有Process和super权限。
–kill-long-query-type 该选项表示kill的类型,默认是all,可选select。
–history 该选项表示percona server 的备份历史记录在percona_schema.xtrabackup_history表。
–debug-sleep-before-unlock=# 仅用于xtrabackup测试套件的debug信息
–check-privileges 在执行查询之前检查数据库用户的权限。

安全备份的参数

参数值 参数用途
–server-public-key-path=name File path to the server public RSA key in PEM format.
–server-public-key-path=name File path to the server public RSA key in PEM format.
–get-server-public-key Get server public key
–ssl-mode=name SSL connection mode.
–ssl-ca=name CA file in PEM format.
–ssl-capath=name CA directory.
–ssl-cert=name X509 cert in PEM format.
–ssl-cipher=name SSL cipher to use.
–ssl-key=name X509 key in PEM format
–ssl-crl=name Certificate revocation list.
–ssl-crlpath=name Certificate revocation list path.
–tls-version=name TLS version to use, permitted values are: TLSv1, TLSv1.1,TLSv1.2
–ssl-fips-mode=name SL FIPS mode to use, permitted values are: OFF, ON,STRICT

2.2 xtrabackup备份和恢复演练一例

2.2.1 备份

-- MySQL 8  xtrabackup 全备
xtrabackup --defaults-file=/u01/my3306/my.cnf  --user=root --password=abc123 --port=3306 --backup --target-dir=/backup/mysql/20200730/fulldb
-- 往表录入数据
mysql> select * from t1;
+------+------+
| id   | name |
+------+------+
|    1 | aaa  |
|    2 | bbb  |
|    3 | ccc  |
|    4 | dddd |
+------+------+
delimiter //
create procedure p1(a int)
begin
   declare i int default 1;
   while i<=a do
      insert into t1(id,name) values (i,null);
      set i=i+1;
end while;
end;
//
delimiter ;
call p1(10000);
mysql> select count(*) from t1;
+----------+
| count(*) |
+----------+
|    10004 |
+----------+
1 row in set (0.00 sec)
-- 增量备份
xtrabackup --defaults-file=/u01/my3306/my.cnf  --user=root --password=abc123 --port=3306 --backup --target-dir=/backup/mysql/20200730/incrdb --incremental-basedir=/backup/mysql/20200730/fulldb

查看备份文件

[mysql@***** 20200730]$ du -sh *
59M     fulldb
6.9M    incrdb

2.2.2 恢复

-- 停止mysql
mysqladmin -uroot -p -S /u01/my3306/mysql.sock shutdown
-- 删除datadir下的所有文件
cd /u01/my3306/data/
rm -rf *
-- 准备全备份的日志:
xtrabackup --prepare --apply-log-only --target-dir=/backup/mysql/20200730/fulldb
-- 准备增量备份的日志
xtrabackup --prepare --apply-log-only --target-dir=/backup/mysql/20200730/fulldb  --incremental-dir=/backup/mysql/20200730/incrdb
-- 全备份准备
xtrabackup --prepare --target-dir=/backup/mysql/20200730/fulldb
-- 拷回数据
xtrabackup -user=root --password=abc123 --port=3306 --datadir=/u01/my3306/data/ --copy-back --target-dir=/backup/mysql/20200730/fulldb/
-- 启动mysql
/u01/my3306/bin/mysqld_safe --defaults-file=/u01/my3306/my.cnf --user=mysql &

恢复日志:

[mysql@****** data]$ xtrabackup -user=root --password=abc123 --port=3306 --datadir=/u01/my3306/data/ --copy-back --target-dir=/backup/mysql/20200730/fulldb/
xtrabackup: recognized server arguments: --datadir=/var/lib/mysql --datadir=/u01/my3306/data/ 
xtrabackup: recognized client arguments: --user=ser=root --password=* --port=3306 --copy-back=1 --target-dir=/backup/mysql/20200730/fulldb/ 
xtrabackup version 8.0.13 based on MySQL server 8.0.20 Linux (x86_64) (revision id: fdf0f4c)
200730 02:20:17 [01] Copying undo_001 to /u01/my3306/data/undo_001
200730 02:20:17 [01]        ...done
200730 02:20:17 [01] Copying undo_002 to /u01/my3306/data/undo_002
200730 02:20:17 [01]        ...done
200730 02:20:17 [01] Copying ib_logfile0 to /u01/my3306/data/ib_logfile0
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ib_logfile1 to /u01/my3306/data/ib_logfile1
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ibdata1 to /u01/my3306/data/ibdata1
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying binlog.000024 to /u01/my3306/data/binlog.000024
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying binlog.index to /u01/my3306/data/binlog.index
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./sys/sys_config.ibd to /u01/my3306/data/sys/sys_config.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./test/t1.ibd to /u01/my3306/data/test/t1.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./test/t2.ibd to /u01/my3306/data/test/t2.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./test/t3.ibd to /u01/my3306/data/test/t3.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./test/t4.ibd to /u01/my3306/data/test/t4.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./test/t5.ibd to /u01/my3306/data/test/t5.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./test/t6.ibd to /u01/my3306/data/test/t6.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql.ibd to /u01/my3306/data/mysql.ibd
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql/general_log_202.sdi to /u01/my3306/data/mysql/general_log_202.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql/general_log.CSM to /u01/my3306/data/mysql/general_log.CSM
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql/general_log.CSV to /u01/my3306/data/mysql/general_log.CSV
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql/slow_log_203.sdi to /u01/my3306/data/mysql/slow_log_203.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql/slow_log.CSM to /u01/my3306/data/mysql/slow_log.CSM
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./mysql/slow_log.CSV to /u01/my3306/data/mysql/slow_log.CSV
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/cond_instances_77.sdi to /u01/my3306/data/performance_schema/cond_instances_77.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_cur_78.sdi to /u01/my3306/data/performance_schema/events_waits_cur_78.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_his_79.sdi to /u01/my3306/data/performance_schema/events_waits_his_79.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_his_80.sdi to /u01/my3306/data/performance_schema/events_waits_his_80.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_sum_81.sdi to /u01/my3306/data/performance_schema/events_waits_sum_81.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_sum_82.sdi to /u01/my3306/data/performance_schema/events_waits_sum_82.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_sum_83.sdi to /u01/my3306/data/performance_schema/events_waits_sum_83.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_sum_84.sdi to /u01/my3306/data/performance_schema/events_waits_sum_84.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_sum_85.sdi to /u01/my3306/data/performance_schema/events_waits_sum_85.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_waits_sum_86.sdi to /u01/my3306/data/performance_schema/events_waits_sum_86.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/file_instances_87.sdi to /u01/my3306/data/performance_schema/file_instances_87.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/file_summary_by__88.sdi to /u01/my3306/data/performance_schema/file_summary_by__88.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/file_summary_by__89.sdi to /u01/my3306/data/performance_schema/file_summary_by__89.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/host_cache_90.sdi to /u01/my3306/data/performance_schema/host_cache_90.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/mutex_instances_91.sdi to /u01/my3306/data/performance_schema/mutex_instances_91.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/objects_summary__92.sdi to /u01/my3306/data/performance_schema/objects_summary__92.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/performance_time_93.sdi to /u01/my3306/data/performance_schema/performance_time_93.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/rwlock_instances_94.sdi to /u01/my3306/data/performance_schema/rwlock_instances_94.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/setup_actors_95.sdi to /u01/my3306/data/performance_schema/setup_actors_95.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/setup_consumers_96.sdi to /u01/my3306/data/performance_schema/setup_consumers_96.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/setup_instrument_97.sdi to /u01/my3306/data/performance_schema/setup_instrument_97.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/setup_objects_98.sdi to /u01/my3306/data/performance_schema/setup_objects_98.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/setup_threads_99.sdi to /u01/my3306/data/performance_schema/setup_threads_99.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/table_io_waits_s_100.sdi to /u01/my3306/data/performance_schema/table_io_waits_s_100.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/table_io_waits_s_101.sdi to /u01/my3306/data/performance_schema/table_io_waits_s_101.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/table_lock_waits_102.sdi to /u01/my3306/data/performance_schema/table_lock_waits_102.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/threads_103.sdi to /u01/my3306/data/performance_schema/threads_103.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_cu_104.sdi to /u01/my3306/data/performance_schema/events_stages_cu_104.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_hi_105.sdi to /u01/my3306/data/performance_schema/events_stages_hi_105.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_hi_106.sdi to /u01/my3306/data/performance_schema/events_stages_hi_106.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_su_107.sdi to /u01/my3306/data/performance_schema/events_stages_su_107.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_su_108.sdi to /u01/my3306/data/performance_schema/events_stages_su_108.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_su_109.sdi to /u01/my3306/data/performance_schema/events_stages_su_109.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_su_110.sdi to /u01/my3306/data/performance_schema/events_stages_su_110.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_stages_su_111.sdi to /u01/my3306/data/performance_schema/events_stages_su_111.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_112.sdi to /u01/my3306/data/performance_schema/events_statement_112.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_113.sdi to /u01/my3306/data/performance_schema/events_statement_113.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_114.sdi to /u01/my3306/data/performance_schema/events_statement_114.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_115.sdi to /u01/my3306/data/performance_schema/events_statement_115.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_116.sdi to /u01/my3306/data/performance_schema/events_statement_116.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_117.sdi to /u01/my3306/data/performance_schema/events_statement_117.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_118.sdi to /u01/my3306/data/performance_schema/events_statement_118.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_119.sdi to /u01/my3306/data/performance_schema/events_statement_119.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_120.sdi to /u01/my3306/data/performance_schema/events_statement_120.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_121.sdi to /u01/my3306/data/performance_schema/events_statement_121.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_122.sdi to /u01/my3306/data/performance_schema/events_statement_122.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_statement_123.sdi to /u01/my3306/data/performance_schema/events_statement_123.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_124.sdi to /u01/my3306/data/performance_schema/events_transacti_124.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_125.sdi to /u01/my3306/data/performance_schema/events_transacti_125.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_126.sdi to /u01/my3306/data/performance_schema/events_transacti_126.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_127.sdi to /u01/my3306/data/performance_schema/events_transacti_127.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_128.sdi to /u01/my3306/data/performance_schema/events_transacti_128.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_129.sdi to /u01/my3306/data/performance_schema/events_transacti_129.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_130.sdi to /u01/my3306/data/performance_schema/events_transacti_130.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_transacti_131.sdi to /u01/my3306/data/performance_schema/events_transacti_131.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_errors_su_132.sdi to /u01/my3306/data/performance_schema/events_errors_su_132.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_errors_su_133.sdi to /u01/my3306/data/performance_schema/events_errors_su_133.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_errors_su_134.sdi to /u01/my3306/data/performance_schema/events_errors_su_134.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_errors_su_135.sdi to /u01/my3306/data/performance_schema/events_errors_su_135.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/events_errors_su_136.sdi to /u01/my3306/data/performance_schema/events_errors_su_136.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/users_137.sdi to /u01/my3306/data/performance_schema/users_137.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/accounts_138.sdi to /u01/my3306/data/performance_schema/accounts_138.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/hosts_139.sdi to /u01/my3306/data/performance_schema/hosts_139.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/socket_instances_140.sdi to /u01/my3306/data/performance_schema/socket_instances_140.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/socket_summary_b_141.sdi to /u01/my3306/data/performance_schema/socket_summary_b_141.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/socket_summary_b_142.sdi to /u01/my3306/data/performance_schema/socket_summary_b_142.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/session_connect__143.sdi to /u01/my3306/data/performance_schema/session_connect__143.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/session_account__144.sdi to /u01/my3306/data/performance_schema/session_account__144.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/keyring_keys_145.sdi to /u01/my3306/data/performance_schema/keyring_keys_145.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/memory_summary_g_146.sdi to /u01/my3306/data/performance_schema/memory_summary_g_146.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/memory_summary_b_147.sdi to /u01/my3306/data/performance_schema/memory_summary_b_147.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/memory_summary_b_148.sdi to /u01/my3306/data/performance_schema/memory_summary_b_148.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/memory_summary_b_149.sdi to /u01/my3306/data/performance_schema/memory_summary_b_149.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/memory_summary_b_150.sdi to /u01/my3306/data/performance_schema/memory_summary_b_150.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/table_handles_151.sdi to /u01/my3306/data/performance_schema/table_handles_151.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/metadata_locks_152.sdi to /u01/my3306/data/performance_schema/metadata_locks_152.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/data_locks_153.sdi to /u01/my3306/data/performance_schema/data_locks_153.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/data_lock_waits_154.sdi to /u01/my3306/data/performance_schema/data_lock_waits_154.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_conn_155.sdi to /u01/my3306/data/performance_schema/replication_conn_155.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_grou_156.sdi to /u01/my3306/data/performance_schema/replication_grou_156.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_conn_157.sdi to /u01/my3306/data/performance_schema/replication_conn_157.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_appl_158.sdi to /u01/my3306/data/performance_schema/replication_appl_158.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_appl_159.sdi to /u01/my3306/data/performance_schema/replication_appl_159.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_appl_160.sdi to /u01/my3306/data/performance_schema/replication_appl_160.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_appl_161.sdi to /u01/my3306/data/performance_schema/replication_appl_161.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_grou_162.sdi to /u01/my3306/data/performance_schema/replication_grou_162.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_appl_163.sdi to /u01/my3306/data/performance_schema/replication_appl_163.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/replication_appl_164.sdi to /u01/my3306/data/performance_schema/replication_appl_164.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/log_status_165.sdi to /u01/my3306/data/performance_schema/log_status_165.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/prepared_stateme_166.sdi to /u01/my3306/data/performance_schema/prepared_stateme_166.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/user_variables_b_167.sdi to /u01/my3306/data/performance_schema/user_variables_b_167.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/status_by_accoun_168.sdi to /u01/my3306/data/performance_schema/status_by_accoun_168.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/status_by_host_169.sdi to /u01/my3306/data/performance_schema/status_by_host_169.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/status_by_thread_170.sdi to /u01/my3306/data/performance_schema/status_by_thread_170.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/status_by_user_171.sdi to /u01/my3306/data/performance_schema/status_by_user_171.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/global_status_172.sdi to /u01/my3306/data/performance_schema/global_status_172.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/session_status_173.sdi to /u01/my3306/data/performance_schema/session_status_173.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/variables_by_thr_174.sdi to /u01/my3306/data/performance_schema/variables_by_thr_174.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/global_variables_175.sdi to /u01/my3306/data/performance_schema/global_variables_175.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/session_variable_176.sdi to /u01/my3306/data/performance_schema/session_variable_176.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/variables_info_177.sdi to /u01/my3306/data/performance_schema/variables_info_177.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/persisted_variab_178.sdi to /u01/my3306/data/performance_schema/persisted_variab_178.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/user_defined_fun_179.sdi to /u01/my3306/data/performance_schema/user_defined_fun_179.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./performance_schema/binary_log_trans_180.sdi to /u01/my3306/data/performance_schema/binary_log_trans_180.sdi
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./ib_buffer_pool to /u01/my3306/data/ib_buffer_pool
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./xtrabackup_master_key_id to /u01/my3306/data/xtrabackup_master_key_id
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./xtrabackup_info to /u01/my3306/data/xtrabackup_info
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Copying ./ibtmp1 to /u01/my3306/data/ibtmp1
200730 02:20:18 [01]        ...done
200730 02:20:18 [01] Creating directory ./#innodb_temp
200730 02:20:18 [01] ...done.
200730 02:20:19 completed OK!

参考文献:

1.http://blog.itpub.net/15412087/viewspace-2152876
2.https://blog.csdn.net/eagle89/article/details/107606775
3.https://blog.csdn.net/vkingnew/article/details/83753179
4.http://blog.itpub.net/26736162/viewspace-2649989/

你可能感兴趣的:(MySQL运维)