innobackupex --slave-info --safe-slave-backup --no-timestamp tmp_last
innobackupex --apply-log tmp_last

rsync -avcz -e ssh root@目录  . && \
rm -f last/auto.cnf && mv last mysql && chown -R mysql:mysql mysql

start mysql

change master to master_host=xx',master_port=xxx;

reset slave; start slave IO_THREAD; stop slave IO_THREAD; reset slave; start slave;

 

posted on 2020-03-24 09:48  代码长风  阅读(97)  评论(0编辑  收藏  举报