MySQL--16 MHA修复
目录 一、恢复MHA 二、MHA切换 三、配置VIP漂移 一、恢复MHA #1.修复旧主库 [root@db01 ~]# /etc/init.d/mysqld start #2.在mha日志中找到change master语句 #GTID模式下: [root@db04 ~]# grep -i 'change master to' /etc/mha/manager.log Tue Nov 19 20:49:31 2019 - [info] All other slaves should start replication from here. Statement should be: CHANGE MASTER TO MASTER_HOST='10.0.0.52', MASTER_PORT=3306, MASTER_AUTO_POSITION=1, MASTER_USER='slave', MASTER_PASSWORD='123'; #普通模式下: [root@db03 ~]# grep -i 'change master to' /etc/mha/manager.log Tue Nov 19 19:22:22 2019 - [info] All other slaves should start replication from here. Statement should be