搭建MySQL+MGR单主模式过程中,提交事务时提示存在的事务过多的解决方法

问题现象描述

搭建MySQL 8.0.18+MGR单主模式过程中,执行START GROUP_REPLICATION;后提示“This member has more executed transactions than those present in the group”。

关键过程、根本原因分析

可能是因为数据不同步导致的问题。

结论、解决方案及效果

  1. 重置master服务并查询master状态,此时master状态已经恢复正常。

    reset master;
    show master status\G

  2. 重新执行如下语句以启动MySQL Group Replication插件。

    START GROUP_REPLICATION;