启动总是报错:

2020-08-21T04:52:36.332502Z 10 [System] [MY-010597] [Repl] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_applier' executed'. Previous state master_host='', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='', master_port= 0, master_log_file='', master_log_pos= 4, master_bind=''.

2020-08-21T04:52:36.425811Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error connecting to the local group communication engine instance.'

2020-08-21T04:52:37.468858Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33081'

2020-08-21T04:52:42.549863Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error connecting to the local group communication engine instance.'

2020-08-21T04:52:43.593257Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33081'

2020-08-21T04:52:48.679199Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error connecting to the local group communication engine instance.'

2020-08-21T04:52:49.720298Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33081'

2020-08-21T04:52:54.798558Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] Error connecting to the local group communication engine instance.'

2020-08-21T04:52:55.838872Z 0 [ERROR] [MY-011735] [Repl] Plugin group_replication reported: '[GCS] The member was unable to join the group. Local port: 33081'

白名单也设置了,防火墙端口也打开了,依旧不行。各种尝试后发现原来是SELinux搞的鬼

解决方法如下:

1.关闭SELinux,但是这样会不太安全,不是很推荐

setenforce 0

2.开放通讯端口(推荐)

yum install -y policycoreutils-python

semanage port -a -t mysqld_port_t -p tcp 33081

子节点连接主节点报错:

2020-08-21T07:07:49.285286Z 17 [System] [MY-010597] [Repl] 'CHANGE MASTER TO FOR CHANNEL 'group_replication_recovery' executed'. Previous state master_host='node1', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''. New state master_host='node1', master_port= 3306, master_log_file='', master_log_pos= 4, master_bind=''.

2020-08-21T07:07:49.306446Z 23 [Warning] [MY-010897] [Repl] Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.

2020-08-21T07:07:49.307832Z 23 [ERROR] [MY-010584] [Repl] Slave I/O for channel 'group_replication_recovery': error connecting to master 'repl@node1:3306' - retry-time: 60 retries: 1 message: Authentication plugin 'caching_sha2_password' reported error: Authentication requires secure connection. Error_code: MY-002061

2020-08-21T07:07:49.314038Z 17 [ERROR] [MY-011582] [Repl] Plugin group_replication reported: 'There was an error when connecting to the donor server. Please check that group_replication_recovery channel credentials and all MEMBER_HOST column values of performance_schema.replication_group_members table are correct and DNS resolvable.'

2020-08-21T07:07:49.314058Z 17 [ERROR] [MY-011583] [Repl] Plugin group_replication reported: 'For details please check performance_schema.replication_connection_status table and error log messages of Slave I/O for channel group_replication_recovery.'

原因 mysql8.0之后加密规则变成 caching_sha2_password了

解决方法:打开公钥访问

set global group_replication_recovery_get_public_key=on;

参考链接:

mgr未同步 mysql_mysql8.0 搭建mgr踩坑记录相关推荐

  1. 复现CLOCs中spconv v1.0 (commit 8da6f96)踩坑记录

    最近看了一篇基于KITTI做2D和3D后融合的论文,CLOCs: Camera-LiDAR Object Candidates Fusion for 3D Object Detection.作者在Gi ...

  2. 安装VM15搭建centos7踩坑记录。

    项目经理又又又又又又又叕来找我做压测了,好吧这次连开发的机器都没法用了,因为开发也在用.上午问了一圈公司也没有16G内存的闲置电脑,所以明天只能把自己笔记本带来做服务器测试了.没法子,启动服务必须要1 ...

  3. mysql8.0 my.cnf只读_MySQL8.0 my.cnf踩坑记录

    1.[ERROR] [MY-000067] [Server] unknown variable 'time_zone=+8:00'. (1)报错地点: 配置文件(my.cnf)time_zone=+8 ...

  4. webpack打包之clean-webpack-plugin插件 默认下载4.0.0版本的踩坑记录

    关于使用clean-webpack-plugin插件打包报错问题,起初在网上寻找解决方案,有很多相关的文章博客都有谈到. 起初使用插件报错 TypeError: CleanWebpackPlugin ...

  5. STF环境搭建运行及踩坑记录

    最初是在centos环境上搭建STF,由于种种依赖缺失.nodejs/npm版本不兼容.以及无解的"Segmentation fault (core dumped)"错误,最终还是 ...

  6. Qt5.13.2中配置opencv4.5.0踩坑记录

      目录 cmake编译opencv时速度过慢或超时 mingw32-make时报错 错误一 [modules\core\CMakeFiles\opencv_core.dir\build.make:1 ...

  7. 【MathType安装】Office2019+MathType7.4.8.0+踩坑记录+最终使用方案

    使用Office2019安装MathType7.4.8.0屡屡碰壁,最终使用的解决方案不同于网络上的大多数方法.尽管当前记录的解决方案还不完美.未做到一劳永逸,但能用就行. MathType安装包获取 ...

  8. Wormhole流程搭建测试踩坑总结(二)

    Wormhole 是宜信技术研发中心开发的一个一站式流式处理云平台解决方案.Wormhole 面向大数据流式处理项目的开发管理运维人员,致力于提供统一抽象的概念体系,直观可视化的操作界面,简单流畅的配 ...

  9. 【踩坑记录】实体机器人运行Cartographer 3D Slam(深度摄像头)--未解决

    [运行背景] ROS1.0  20.04 noetic 机器人:NXRobo SPARK-T 安装cartographer请看: [安装学习]安装Cartographer ROS(noetic)_Ho ...

最新文章

  1. es java_java整合ElasticSearch导入数据到es中
  2. 着眼未来!2019未来杯高校AI挑战赛圆满落幕
  3. 草稿 12月第2周 排课
  4. EditText焦点自动带出软键盘问题
  5. PAT L2-004 这是二叉搜索树吗 [二叉搜索树]
  6. 如何利用RFM模型对客户进行精细化管理
  7. C Primer Plus(第6版)第一章复习题答案
  8. 安装打印机提示未能添加服务器,打印机未能链接到服务器
  9. html打砖块游戏制作,JavaScript实现打砖块游戏
  10. 基于STM32单片机的智能药盒带语音播报原理图程序
  11. Jenkins HTML Publisher 插件
  12. XXE漏洞介绍及利用
  13. discuz网站没备案无执照接入支付宝充值功能
  14. 我的世界服务器显示离线,我的世界离线模式怎么玩服务器 | 手游网游页游攻略大全...
  15. idea如何设置在新窗口打开另一个项目、如何设置多个项目在一个idea工作空间
  16. jquery 滚动特效
  17. windows安装CUDA11.1,搭建PaddlePaddle和PaddleHub
  18. Chrome和Edge浏览器驱动的下载和使用
  19. 阿里社交软件“点点虫”推“24小时”视频直播功能
  20. linux下给文件特殊行固定列后面添加字符

热门文章

  1. linux suse 共享目录_SUSE环境下YAST源(连接共享目录)
  2. pytorch实现数据增强的原理
  3. 李航《统计学习方法》笔记
  4. spark-submit 参数设置
  5. Qt实用快捷键(较全面)
  6. 线程WAITING--BlockingQueueDemo
  7. wpf 点击按钮弹出选择框_WPF-PopupWindow wpf右下角弹出框,通过按钮调用,类似QQ CSharp C#编程 238万源代码下载- www.pudn.com...
  8. java发送邮件354_基于SMTP的JAVA邮件发送程序
  9. python使用selenium_如何在python中使用selenium的示例
  10. 计算机软件著作权奖励资金绩效目标,专项资金项目绩效目标表.pdf