现象:
原因:主从架构宕过机
1.把宕机的主库change master into
change master to
master_host='10.0.0.33',
master_user='repl',
master_password='123' ,
MASTER_AUTO_POSITION=1;
把真正主库 reset slave all;
查看从库show slave status \G
masterha_check_repl --conf=/etc/mha/app1.cnf
启动高可用
masterha_stop --conf=/etc/mha/app1.cnf
nohup masterha_manager --conf=/etc/mha/app1.cnf --remove_dead_master_conf --ignore_last_failover < /dev/null > /var/log/mha/app1/manager.log 2>&1 &