| 27 | Then start mysql with '''docker exec -it nodedb1 -uroot -pmypass''' |
| 28 | {{{ |
| 29 | mysql> create user 'repl'@'%'; |
| 30 | GRANT ALL ON * . * TO repl@'%'; |
| 31 | flush privileges; |
| 32 | SET @@GLOBAL.group_replication_group_name='aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee'; |
| 33 | SET @@GLOBAL.group_replication_local_address='nodedb1:33061'; |
| 34 | SET @@GLOBAL.group_replication_group_seeds='nodedb1:33061,nodedb2:33061,nodedb3:33061'; |
| 35 | SET @@GLOBAL.group_replication_bootstrap_group=1; |
| 36 | change master to master_user='repl' for channel 'group_replication_recovery'; |
| 37 | START GROUP_REPLICATION; |
| 38 | SET @@GLOBAL.group_replication_bootstrap_group=0; |
| 39 | SELECT * FROM performance_schema.replication_group_members; |
| 40 | }}} |