Createanew(orrepairabroken)GTIDbasedslave
innobackupex /data/backups/
$ cat xtrabackup_binlog_infomysql-bin.000002 1232 c777888a-b6df-11e2-a604-080027635ef5:1-4
STEP 2: Prepare the backup
TheMaster$ innobackupex --apply-log /data/backups/$TIMESTAMP/
STEP 3: Move the backup to the destination server
TheMaster$ rsync -avprP -e ssh /path/to/backupdir/$TIMESTAMP NewSlave:/path/to/mysql/
NewSlave$ chown mysql:mysql /path/to/mysql/datadir
STEP 4: Configure and start replication
NewSlave > SET GLOBAL gtid_purged="c777888a-b6df-11e2-a604-080027635ef5:1-4";NewSlave > CHANGE MASTER TO
MASTER_HOST="$masterip",
MASTER_USER="repl",
MASTER_PASSWORD="$slavepass",
MASTER_AUTO_POSITION = 1;
注:
innobackupex was previously deprecated and has been removed from Percona XtraBackup 8.0-3-rc1 .
以上是 Createanew(orrepairabroken)GTIDbasedslave 的全部内容, 来源链接: utcz.com/z/533719.html