| 1 |
include/master-slave.inc |
| 2 |
Warnings: |
| 3 |
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure. |
| 4 |
Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information. |
| 5 |
[connection master] |
| 6 |
CREATE TABLE t1 (a int) ENGINE=MyISAM; |
| 7 |
CREATE TABLE t2 (a int) ENGINE=MyISAM; |
| 8 |
INSERT INTO t1 VALUES (1), (2), (3); |
| 9 |
INSERT INTO t2 VALUES (4), (5), (6); |
| 10 |
CREATE TEMPORARY TABLE IF NOT EXISTS tt1_merge LIKE t1; |
| 11 |
ALTER TABLE tt1_merge ENGINE=MERGE UNION (t2, t1); |
| 12 |
CREATE TABLE t1_merge LIKE tt1_merge; |
| 13 |
include/sync_slave_sql_with_master.inc |
| 14 |
include/diff_tables.inc [master:test.t1, slave:test.t1] |
| 15 |
include/diff_tables.inc [master:test.t2, slave:test.t2] |
| 16 |
UPDATE t1_merge SET a=10 WHERE a=1; |
| 17 |
DELETE FROM t1_merge WHERE a=10; |
| 18 |
include/sync_slave_sql_with_master.inc |
| 19 |
include/diff_tables.inc [master:test.t1, slave:test.t1] |
| 20 |
include/diff_tables.inc [master:test.t2, slave:test.t2] |
| 21 |
DROP TABLE t1_merge, t1, t2; |
| 22 |
include/sync_slave_sql_with_master.inc |
| 23 |
include/rpl_end.inc |