我正在尝试使用 mysqlsh 命令将实例添加到集群集中:
dba.get_cluster().add_instance("cluster@10.0.0.90:3306", {"ipAllowlist": "10.0.0.0/24"})
然后看到错误
WARNING: Error in applier for group_replication_recovery: Worker 1 failed executing transaction '8873cb64-e90a-11ec-96fa-180373f152e2:10483' at source log binlog.004306, end_log_pos 278669;
Could not execute Write_rows event on table db_production.sessions;
Duplicate entry '63722726' for key 'sessions.PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's source log binlog.004306, end_log_pos 278669 (1062) at 2023-08-18 17:08:38.444870
delete from sessions where id = 63722726我尝试使用;删除表中的项目 但这没有什么区别。
我还尝试使用该实用程序查找重复项mysqlbinlog:
mysqlbinlog --read-from-remote-server -h 10.0.0.90 -u cluster -p binlog.004306 --verbose --base64-output=DECODE-ROWS | grep -A10 -B10 278669
然而,除了“是”之外,我没有看到任何突出的东西。有一行 id = 63722726。
这最初是由 ubuntu 无人值守更新引起的,将其中一个系统上的 mysql 版本从 8.0.33 更新到 8.0.44,导致版本不匹配并中断。
我不期待我认为可能的解决方案,即在十六进制编辑器中手动编辑二进制日志。:(
有没有人见过这个问题,如何解决?