Changes between Version 5 and Version 6 of GROUPReplicate


Ignore:
Timestamp:
06/11/22 02:39:09 (2 years ago)
Author:
krit
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUPReplicate

    v5 v6  
    4646}}}
    4747
    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
     485. 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)
    4949{{{
    5050root@n1:/home/ubuntu/GR# docker exec -it ac87f41b140c mysql -uroot -pmypass \
     
    5252   -e "START GROUP_REPLICATION;"
    5353}}}
    54 We also do above command with node3 (replicate node)
     54 
    5555
    56566. Check all nodes status on node1
     
    6565| group_replication_applier | 8ef43b09-e92c-11ec-936c-02420a000b09 | node1       |        3306 | ONLINE       | PRIMARY     | 8.0.29         | XCom                       |
    6666+---------------------------+--------------------------------------+-------------+-------------+--------------+-------------+----------------+----------------------------+
    67 root@n3:/home/ubuntu#
    6867}}}
     68
     697. Create TEST database with table  on node1
     70{{{
     71root@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;"
     72mysql: [Warning] Using a password on the command line interface can be insecure.
     73+----------------+
     74| Tables_in_TEST |
     75+----------------+
     76| t1             |
     77+----------------+
     78}}}