linux上msyql主从复制gtid,主从全部重启后(两个no)

解决办法:
1:先到主库上查看偏移量(Position)
mysql> show master status;
+------------------+----------+--------------+------------------+----------------------------------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set                            |
+------------------+----------+--------------+------------------+----------------------------------------------+
| mysql-bin.000014 |      191 |              |                  | 03969184-0807-11e9-9734-001e67f4efb0:1-25434 |
+------------------+----------+--------------+------------------+----------------------------------------------+
1 row in set (0.00 sec)
2:再在从库上操作
reset slave;
change master to master_host='192.168.116.101', master_user='zzh', master_password='123456',master_port=3306,master_auto_position=191;
start slave;

猜你喜欢

转载自blog.csdn.net/zzhlinux911218/article/details/85266303