32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
include/rpl_init.inc [topology=1->2->3]
|
|
Warnings:
|
|
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
|
Warnings:
|
|
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
|
|
|
|
create table t1 (a int not null auto_increment, b int not null, primary key(a)) engine=XENGINE;
|
|
include/rpl_sync.inc
|
|
include/stop_slave.inc
|
|
change master to master_port=SERVER_MYPORT_1;;
|
|
include/start_slave.inc
|
|
insert into t1 values (NULL, 1);
|
|
include/sync_slave_sql_with_master.inc
|
|
include/sync_slave_sql_with_master.inc
|
|
include/diff_tables.inc [server_1:test.t1, server_2:test.t1, server_3:test.t1]
|
|
include/stop_slave.inc
|
|
insert into t1 values (NULL, 2);
|
|
include/sync_slave_sql_with_master.inc
|
|
include/stop_slave.inc
|
|
change master to master_port=SERVER_MYPORT_2;
|
|
include/start_slave.inc
|
|
include/sync_slave_sql_with_master.inc
|
|
include/diff_tables.inc [server_1:test.t1, server_2:test.t1, server_3:test.t1]
|
|
change master to master_port=SERVER_MYPORT_1;
|
|
include/start_slave.inc
|
|
*** Clean up ***
|
|
DROP TABLE t1;
|
|
include/rpl_sync.inc
|
|
include/rpl_end.inc
|