91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

MGR單主啟動報錯處理ERROR 3092

發布時間:2020-03-11 23:03:04 來源:網絡 閱讀:814 作者:roidba 欄目:MySQL數據庫

環境描述:
三個節點的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)
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

黄梅县| 乌拉特中旗| 格尔木市| 葫芦岛市| 陆河县| 乐至县| 定边县| 清河县| 和田市| 泽库县| 南昌市| 固阳县| 中方县| 土默特左旗| 柞水县| 满城县| 滕州市| 双柏县| 临西县| 沅陵县| 犍为县| 平湖市| 吉安县| 亚东县| 新河县| 邯郸市| 商河县| 明溪县| 临泉县| 巩义市| 普兰店市| 丰台区| 武安市| 景洪市| 延川县| 麻江县| 柘城县| 浦东新区| 阳城县| 新津县| 安福县|