hange master to master_host='127.0.0.1',master_port=3306,master_user='slave3307', master_password='slave3307',master_log_file='mysql-bin.000062',master_log_pos=8233;
mysql>mysql -uroot -pmycat -P8066 Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.6.29-mycat-1.6-RELEASE-20161028204710 MyCat Server (OpenCloun
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> insert into t_user(id, name) values(1, 'aaa'); Query OK, 1 row affected (0.02 sec)
C:\Users\nick>mysql -uroot -p123456 Warning: Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10628 Server version: 5.6.40-log MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select * from db1.t_user; +----+------+-------+ | id | name | _slot | +----+------+-------+ | 3 | ccc | 32411 | | 5 | eee | 27566 | +----+------+-------+ 2 rows in set (0.00 sec)
mysql> select * from db2.t_user; +----+------+-------+ | id | name | _slot | +----+------+-------+ | 1 | aaa | 44983 | | 2 | bbb | 65037 | +----+------+-------+ 2 rows in set (0.00 sec)
mysql> select * from db3.t_user; +----+------+-------+ | id | name | _slot | +----+------+-------+ | 4 | ddd | 68408 | +----+------+-------+ 1 row in set (0.00 sec)
C:\Users\nick>mysql -uroot -p -P3307 Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10412 Server version: 5.6.40-log MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select * from db1.t_user; +----+------+-------+ | id | name | _slot | +----+------+-------+ | 3 | ccc | 32411 | | 5 | eee | 27566 | +----+------+-------+ 2 rows in set (0.00 sec)