Description:
MGR info:
+---------------------------+--------------------------------------+--------------+-------------+--------------+-------------+----------------+
| CHANNEL_NAME | MEMBER_ID | MEMBER_HOST | MEMBER_PORT | MEMBER_STATE | MEMBER_ROLE | MEMBER_VERSION |
+---------------------------+--------------------------------------+--------------+-------------+--------------+-------------+----------------+
| group_replication_applier | 467ce377-7dde-11e8-a16e-005056a928af | 10.1.116.122 | 3306 | ONLINE | SECONDARY | 8.0.13 |
| group_replication_applier | 4980ec5d-7dde-11e8-92cc-005056a95e1d | 10.1.116.123 | 3306 | ONLINE | PRIMARY | 8.0.13 |
| group_replication_applier | 8f47d045-7ddc-11e8-9c46-005056a963a3 | 10.1.116.121 | 3306 | ONLINE | SECONDARY | 8.0.13 |
+---------------------------+--------------------------------------+--------------+-------------+--------------+-------------+----------------+
create user JianBing identified with mysql_native_password by 'mysql' default role role_read;
primary:
mysql> show grants for JianBing;
+-----------------------------------------+
| Grants for JianBing@% |
+-----------------------------------------+
| GRANT USAGE ON *.* TO `JianBing`@`%` |
| GRANT `role_read`@`%` TO `JianBing`@`%` |
+-----------------------------------------+
SECONDARY:
mysql> show grants for JianBing;
+--------------------------------------+
| Grants for JianBing@% |
+--------------------------------------+
| GRANT USAGE ON *.* TO `JianBing`@`%` |
+--------------------------------------+
How to repeat:
mail: JianBing.Pan@hotmail.com