前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >MGR单主启动报错处理ERROR 3092

MGR单主启动报错处理ERROR 3092

作者头像
星哥玩云
发布2022-08-18 17:37:33
5510
发布2022-08-18 17:37:33
举报
文章被收录于专栏:开源部署

环境描述: 三个节点的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、启动数据库 [root@localhost ~]# mysqld_safe --defaults-file=/data/arkdb/3306/etc/my.cnf & [1] 21806 [root@localhost ~]#  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)

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 SQL Server
腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档