Rechercher dans le manuel MySQL
The following functions enable you to inspect and configure the Group Replication communication protocol version that is used by a replication group.
group_replication_get_communication_protocol()
Inspect the Group Replication communication protocol version that is currently in use for a group.
Syntax:
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. Versions from MySQL 5.7.14 allow compression of messages, and versions from MySQL 8.0.16 also allow fragmentation of messages. Note that the
group_replication_get_communication_protocol()
UDF returns the minimum MySQL version that the group supports, which might differ from the version number that was passed to thegroup_replication_set_communication_protocol()
UDF, and from the MySQL Server version that is installed on the member where you use the UDF.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:
- +------------------------------------------------+
- | group_replication_get_communication_protocol() |
- +------------------------------------------------+
- | 8.0.16 |
- +------------------------------------------------+
For more information, see Section 18.4.1.4, “Setting a Group's Communication Protocol Version”.
group_replication_set_communication_protocol()
Downgrade the Group Replication communication protocol version of a group so that members at earlier releases can join, or upgrade the Group Replication communication protocol version of a group after upgrading MySQL Server on all members. The
GROUP_REPLICATION_ADMIN
privilege is required to use this UDF, and all existing group members must be online when you issue the statement, with no loss of majority.NoteFor MySQL InnoDB cluster, the communication protocol version is managed automatically whenever the cluster topology is changed using AdminAPI operations. You do not have to use these UDFs yourself for an InnoDB cluster.
Syntax:
STRING group_replication_set_communication_protocol(version)
Arguments:
version
: For a downgrade, specify the MySQL Server version of the prospective group member that has the oldest installed server version. In this case, the command makes the group fall back to a communication protocol compatible with that server version if possible. The minimum server version that you can specify is MySQL 5.7.14. For an upgrade, specify the new MySQL Server version to which the existing group members have been upgraded.
Return value:
A string containing the result of the operation, for example whether it was successful or not.
Example:
For more information, see Section 18.4.1.4, “Setting a Group's Communication Protocol Version”.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-group-replication-functions-for-communication-protocol.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.