14.18.1.2 Functions which Configure the Group Replication Mode (original) (raw)

The world's most popular open source database

14.18.1.2 Functions which Configure the Group Replication Mode

The following functions enable you to control the mode which a replication group is running in, either single-primary or multi-primary mode.

STRING group_replication_switch_to_multi_primary_mode()  

This function has no parameters.
Return value:
A string containing the result of the operation, for example whether it was successful or not.
Example:

SELECT group_replication_switch_to_multi_primary_mode()  

All members which belong to the group become primaries.
For more information, seeSection 20.5.1.2, “Changing the Group Mode”

STRING group_replication_switch_to_single_primary_mode([str])  

Arguments:

SELECT group_replication_switch_to_single_primary_mode(member_uuid);  

For more information, seeSection 20.5.1.2, “Changing the Group Mode”