MySQL MGR from a database cluster display RECOVRING

Scrapped because of power failure or other cause:

From the node display RECOVRING

View the error log shows:

Slave SQL for channel 'group_replication_recovery': Error 'Can't create database 'test'; database exists' on query. Default database: 'test'. Query: 'create database test', Error_code: 1007

The meaning is clear, test database already exists can not create a test database.

 

Solution:

Stop replication service group;

stop group_replication;

Modify read-only access from the node database

set global super_read_only=0;

Delete Database

drop database test;

Modify the database read-only access from the node

set global super_read_only=1;

Open group Replication Service

set global group_replication_allow_local_disjoint_gtids_join=ON;

start group_replication;

 

To prevent this problem when you start the MySQL nodes, you can modify the configuration file parameters:

loose-group_replication_allow_local_disjoint_gtids_join=on

 

In the beginning of this configuration is that I also set off from the Internet to see, it is not clear why specific.

Guess you like

Origin www.cnblogs.com/com-xiaolanchong/p/11957886.html