MGR单主启动报错处理ERROR 3092

环境描述:
三个节点的MGR集群,单主模式,准备关闭主节点进行数据库维护,出现了报错信息。

1、关闭数据库
mysql> shutdown;
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> 2019-09-23T07:16:36.262422Z mysqld_safe mysqld from pid file /data/arkdb/3306/pid/mysql.pid ended

2、启动数据库
[[email protected] ~]# mysqld_safe --defaults-file=/data/arkdb/3306/etc/my.cnf &
[1] 21806
[[email protected] ~]#  mysqld_safe Adding ‘/usr/lib64/libjemalloc.so.1‘ to LD_PRELOAD for mysqld
2019-09-23T07:17:32.239260Z mysqld_safe Logging to ‘/data/arkdb/3306/log/mysql-error.log‘.
2019-09-23T07:17:32.287687Z mysqld_safe Starting mysqld daemon with databases from /data/arkdb/3306/data

3、启动组复制
mysql> start group_replication;
ERROR 3092 (HY000): The server is not configured properly to be an active member of the group. Please see more details on error log.

4、查看报错信息
grep ERROR mysql-error.log

2019-09-23T07:18:10.080941Z 0 [ERROR] Plugin group_replication reported:
‘The member configuration is not compatible with the group configuration.
Variables such as single_primary_mode or enforce_update_everywhere_checks must have the same value on every server in the group.
(member configuration option: [], group configuration option: [group_replication_single_primary_mode]).‘

5、查看参数
mysql> show variables like ‘%single%‘;
+---------------------------------------+-------+
| Variable_name                         | Value |
+---------------------------------------+-------+
| group_replication_single_primary_mode | OFF   |
+---------------------------------------+-------+
1 row in set (0.00 sec)

mysql> show variables like ‘%enforce_update_everywhere_checks‘;
+----------------------------------------------------+-------+
| Variable_name                                      | Value |
+----------------------------------------------------+-------+
| group_replication_enforce_update_everywhere_checks | OFF   |
+----------------------------------------------------+-------+
1 row in set (0.01 sec)

6、启动单主模式,再此启动组复制
mysql> set global group_replication_single_primary_mode=on;
Query OK, 0 rows affected (0.00 sec)

mysql> show variables like ‘%single%‘;
+---------------------------------------+-------+
| Variable_name                         | Value |
+---------------------------------------+-------+
| group_replication_single_primary_mode | ON    |
+---------------------------------------+-------+
1 row in set (0.01 sec)

mysql> start group_replication;
Query OK, 0 rows affected (3.26 sec)

mysql> 

7、验证
mysql> select * from performance_schema.replication_group_members;
+---------------------------+--------------------------------------+-------------+-------------+--------------+
| CHANNEL_NAME              | MEMBER_ID                            | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE |
+---------------------------+--------------------------------------+-------------+-------------+--------------+
| group_replication_applier | 500dd0aa-b8f6-11e9-85ba-005056875a61 | 196.55.x.xxx|        3306 | ONLINE       |
| group_replication_applier | 59d7f183-b8f6-11e9-863b-005056875165 | 196.55.x.xxx|        3306 | ONLINE       |
| group_replication_applier | 69e1c26d-b8f6-11e9-91c1-00505687032a | 196.55.x.xxx|        3306 | ONLINE       |
+---------------------------+--------------------------------------+-------------+-------------+--------------+
3 rows in set (0.00 sec)

原文地址:https://blog.51cto.com/roidba/2440356

时间: 2024-10-12 20:06:11

MGR单主启动报错处理ERROR 3092的相关文章

修改grub解决计算机启动报错:ERROR 17

修改grub解决计算机启动报错:ERROR 17 原本计算机有C,D,E,F,G.C盘windows系统盘,G盘安装了Centos.后来由于需要,就压缩卷的方式从D盘压缩出一个H盘.然后再次启动计算机的时候就遇到了错误:ERROR 17 原因: 就在于先安装windows后安装Linux这样的话,grub就由位于G盘的Centos引导,现在该分区之前又划分出一个新的逻辑分区,就导致磁盘系统符号向后移了一位,因此grub失败. 解决方案: 1,刻录一个Linux安装U盘,进入BIOS修改启动项,从

Airtest启动报错:ERROR:gup_process_transport_factory.cc<1019>] Lost UI share context

第一次使用Airtest时,启动报错: [5908:5912:1229/211349.007.ERROR:gup_process_transport_factory.cc<1019>] Lost UI share contextQOpenGLShader:link: Failed to create D3D shadersCould not link shader program:"Failed to create 3D3 shader. \n" 解决办法: 下载并安装di

Nginx 启动报错 (nginx: error while loading shared libraries: XXX: cannot open shared object file: No such file or directory ) 的解决办法

本文解决 Nginx 因库文件缺失而无法启动问题 没有采用缺失什么就安装什么的解决办法, 而是借助于另一个正常运行的Linux , 将其上的库文件发送给缺失库文件的 Linux 服务器 以 缺失  libharfbuzz.so.0 为例 , 其它库文件缺失 大同小异 前提摘要: 今天打开我的网址 www.cheery.pro 时发现,  多次重试也没反应, 这可怎么办? 这是怎么回事 问题探究: ping了一下服务器发现可以ping通,  于是猜测可能是Nginx 出现了问题, 打开宝塔面板,

SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required

Spring Boot发布war包流程: 1.修改web model的pom.xml <packaging>war</packaging> SpringBoot默认发布的都是jar,因此要修改默认的打包方式jar为war 2.修改web model的依赖(dependency) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boo

008-SpringBoot发布WAR启动报错:Error assembling WAR: webxml attribute is required

一.Spring Boot发布war包流程: 1.修改web model的pom.xml <packaging>war</packaging> SpringBoot默认发布的都是jar,因此要修改默认的打包方式jar为war 2.修改web model的依赖(dependency) <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-b

IDEA启动报错Internal error. Please report to http://jb.gg/ide/critical-startup-errors java.lang.NoClassDefFoundError: org/eclipse/xtext/xbase/lib/Exceptions

报错内容: Internal error. Please report to http://jb.gg/ide/critical-startup-errors java.lang.NoClassDefFoundError: org/eclipse/xtext/xbase/lib/Exceptions at delight.rhinosandox.internal.RhinoSandboxImpl.assertContextFactory(RhinoSandboxImpl.java:71) at

scala终端启动报错:[ERROR] Failed to construct terminal; falling back to unsupported

MBP本机安装的是scala 2.11.12,通过命令行启动scala报错如下 报错之后,scala还是能启动 [@wooluwakerdeMBP:2.11.12]$ scala Welcome to Scala 2.11.12 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_231). Type in expressions for evaluation. Or try :help. [ERROR] Failed to construct term

mysql启动报错:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist

mysql在首次启动的时候可能会报错:Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 这时候可以执行脚本 mysql_install_db –user=mysql –ldata=数据存放的路径

struts2启动报错:ERROR com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor - Conversion registration error

[framework] 2019-12-05 11:34:05,441 - org.springframework.web.context.ContextLoader -5352 [RMI TCP Connection(3)-127.0.0.1]INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5349 ms timer appl