14.18.1.4 Functions to Inspect and Set the Group Replication Communication

Protocol Version (original) (raw)

14.18.1.4 Functions to Inspect and Set the Group Replication Communication Protocol Version

The following functions enable you to inspect and configure the Group Replication communication protocol version that is used by a replication group.

STRING group_replication_get_communication_protocol()  

This function has no parameters.
Return value:
The oldest MySQL Server version that can join this group and use the group's communication protocol. Note that thegroup_replication_get_communication_protocol() function returns the minimum MySQL version that the group supports, which might differ from the version number that was passed togroup_replication_set_communication_protocol(), and from the MySQL Server version that is installed on the member where you use the function.
If the protocol cannot be inspected because this server instance does not belong to a replication group, an error is returned as a string.
Example:

SELECT group_replication_get_communication_protocol();  
+------------------------------------------------+  
| group_replication_get_communication_protocol() |  
+------------------------------------------------+  
| 8.0.42                                          |  
+------------------------------------------------+  

For more information, seeSection 20.5.1.4, “Setting a Group's Communication Protocol Version”.

STRING group_replication_set_communication_protocol(version)  

Arguments:

SELECT group_replication_set_communication_protocol("5.7.25");  

For more information, seeSection 20.5.1.4, “Setting a Group's Communication Protocol Version”.