set global transaction_write_set_extraction = XXHASH64
set global group_replication_start_on_boot = OFF
set global group_replication_bootstrap_group = OFF
set global group_replication_group_name = b6ddfda0-d8bc-4272-a58f-4ea75acbbc79
set global group_replication_local_address = '192.16.0.11:23306'
set global group_replication_group_seeds = '192.16.0.11:23306,192.16.0.12:23306,192.16.0.13:23306'
而不再配置以下两个参数:
set global group_replication_single_primary_mode=FALSE
set global group_replication_enforce_update_everywhere_checks=FALSE
12节点:
"root@localhost:mysql3306.sock [(none)]>insert into mgrdb.grtest (id,name) values(6,'single_master');
ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement
13节点
"root@localhost:mysql3306.sock [(none)]>insert into mgrdb.grtest (id,name) values(7,'single_master');
ERROR 1290 (HY000): The MySQL server is running with the --super-read-only option so it cannot execute this statement
"root@localhost:mysql3306.sock [(none)]>select * from mgrdb.grtest;
+----+---------------+
| id | name |
+----+---------------+
| 1 | dbwatcher |
| 2 | dbwatcher |
| 3 | dbwatcher |
| 4 | dbwatcher |
| 5 | single_master |
+----+---------------+
5 rows in set (0.00 sec)