Version sans cache


Mise en cache désactivé. Réglage défaut pour cette page : actif (code DEF204)
Si l'affichage est trop lent, vous pouvez désactiver le mode utilisateur pour visualiser la version en cache.

Rechercher dans le manuel MySQL

17.3.3.2 Privilege Checks For Group Replication Channels

As well as securing asynchronous and semi-synchronous replication, you may choose to use a PRIVILEGE_CHECKS_USER account to secure the two replication applier threads used by Group Replication. The group_replication_applier thread on each group member is used for applying the group's transactions, and the group_replication_recovery thread on each group member is used for state transfer from the binary log as part of distributed recovery when the member joins or rejoins the group.

To secure one of these threads, issue the CHANGE MASTER TO statement with the PRIVILEGE_CHECKS_USER option, specifying group_replication_applier or group_replication_recovery as the channel name. For example:

  1. mysql> CHANGE MASTER TO PRIVILEGE_CHECKS_USER = 'gr_repl'@'%.example.com' FOR CHANNEL 'group_replication_recovery';

For Group Replication channels, the REQUIRE_ROW_FORMAT setting is automatically enabled when the channel is created, and cannot be disabled, so you do not need to specify this.

If a remote cloning operation is used for distributed recovery in Group Replication (see Section 18.4.3.1, “Cloning for Distributed Recovery”), from MySQL 8.0.19, the PRIVILEGE_CHECKS_USER account and settings from the donor are cloned to the joining member. If the joining member is set to start Group Replication on boot, it automatically uses the account for the appropriate replication channels. In MySQL 8.0.18, the PRIVILEGE_CHECKS_USER account is cloned but the settings are not cloned, so you must assign the user account manually to the appropriate channels on the joining member.

Limitations

In MySQL 8.0.18 only, when Group Replication is stopped and restarted, in some circumstances any PRIVILEGE_CHECKS_USER account setting that is specified for a Group Replication channel is removed and must be respecified. If you use privilege checks for Group Replication channels in that release, always verify that they are still in place after a restart, and respecify them if required.

In MySQL 8.0.18 only, when a joining member receives state transfer by a remote cloning operation, any PRIVILEGE_CHECKS_USER account setting that is specified for a Group Replication channel is not set on the joining member after cloning. You must set up the user manually for the applicable replication channels. Due to another limitation in MySQL 8.0.18, set up the user only after Group Replication has restarted following the cloning operation. From MySQL 8.0.19, the PRIVILEGE_CHECKS_USER account setting and REQUIRE_ROW_FORMAT setting are cloned to the joining member and reapplied to the replication channels automatically.  


Rechercher dans le manuel MySQL

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-replication-privilege-checks-gr.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

  1. Consulter le document html Langue du document :en Manuel MySQL : https://dev.mysql.com/

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.

Table des matières Haut