Changes between Version 5 and Version 6 of GROUPReplicate
- Timestamp:
- 06/11/22 02:39:09 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GROUPReplicate
v5 v6 46 46 }}} 47 47 48 5. On replicate node2, node3, pls change '''node2''' to docker id ex. ac87f41b140c which can be checked with '''docker ps''' on swarm node n1, n2 48 5. On replicate node2, node3, pls change '''node2''' to docker id ex. ac87f41b140c which can be checked with '''docker ps''' on swarm node n1, n2. We also do above command with node3 (replicate node) 49 49 {{{ 50 50 root@n1:/home/ubuntu/GR# docker exec -it ac87f41b140c mysql -uroot -pmypass \ … … 52 52 -e "START GROUP_REPLICATION;" 53 53 }}} 54 We also do above command with node3 (replicate node) 54 55 55 56 56 6. Check all nodes status on node1 … … 65 65 | group_replication_applier | 8ef43b09-e92c-11ec-936c-02420a000b09 | node1 | 3306 | ONLINE | PRIMARY | 8.0.29 | XCom | 66 66 +---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+----------------------------+ 67 root@n3:/home/ubuntu#68 67 }}} 68 69 7. Create TEST database with table on node1 70 {{{ 71 root@n3:/home/ubuntu# docker exec -it 26 mysql -uroot -pmypass -e "create database TEST; use TEST; CREATE TABLE t1 (id INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; show tables;" 72 mysql: [Warning] Using a password on the command line interface can be insecure. 73 +----------------+ 74 | Tables_in_TEST | 75 +----------------+ 76 | t1 | 77 +----------------+ 78 }}}