使用XtraBackup创建mysql slave12

2022-05-12 22:59:23 浏览数 (1)

恢复完后, datadir 里也有一个位置文件

代码语言:javascript复制
[root@slave-test mysql]# cat /data/mysql/xtrabackup_binlog_pos_innodb 
mysql-bin.000009	1509223
[root@slave-test mysql]# cat /data/mysql/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 mysql]# 

修改数据权限

代码语言:javascript复制
[root@slave-test mysql]# chown -R mysql:mysql /var/lib/mysql 
[root@slave-test mysql]#
[root@slave-test data]# chown -R mysql:mysql  /data/mysql/
[root@slave-test data]# 

0 人点赞