使用XtraBackup创建mysql slave8

2022-05-04 22:35:10 浏览数 (1)

恢复数据库

备份目录里有几个文件,里面有一些重要信息

恢复之前,我习惯将它们进行备份

代码语言:javascript复制
[root@slave-test 2015-10-12_15-24-06]# file xtrabackup_*
xtrabackup_binlog_info: ASCII text
xtrabackup_checkpoints: ASCII text
xtrabackup_info:        ASCII text
xtrabackup_logfile:     data
[root@slave-test 2015-10-12_15-24-06]# cat xtrabackup_binlog_info
mysql-bin.000009	1509223
[root@slave-test 2015-10-12_15-24-06]# cat xtrabackup_checkpoints
backup_type = full-backuped
from_lsn = 0
to_lsn = 76232242511
last_lsn = 76232242511
compact = 0
[root@slave-test 2015-10-12_15-24-06]# cat xtrabackup_info
uuid = 3cf59860-70b3-11e5-95db-0024213a7622
name = 
tool_name = innobackupex
tool_command = --defaults-file=/etc/my.cnf --user=root --password=... /data/fullbackup/
tool_version = 1.5.1-xtrabackup
ibbackup_version = xtrabackup version 2.2.12 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 8726828)
server_version = 5.6.25-73.0-log
start_time = 2015-10-12 15:24:06
end_time = 2015-10-12 15:31:22
lock_time = 12
binlog_pos = filename 'mysql-bin.000009', position 1509223
innodb_from_lsn = 0
innodb_to_lsn = 76232242511
partial = N
incremental = N
format = file
compact = N
compressed = N
encrypted = N
[root@slave-test 2015-10-12_15-24-06]#

0 人点赞