88 lines
3.8 KiB
Plaintext
88 lines
3.8 KiB
Plaintext
include/rpl_init.inc [topology=1->2,1->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.
|
|
[connection server_2]
|
|
CHANGE MASTER TO MASTER_DELAY= 5;
|
|
include/start_slave.inc
|
|
[connection server_3]
|
|
CHANGE MASTER TO MASTER_DELAY= 8;
|
|
include/start_slave.inc
|
|
[connection server_1]
|
|
CREATE TABLE t1 (a INT);
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
[connection server_2]
|
|
[connection server_3]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
[connection server_1]
|
|
INSERT INTO t1 VALUES (1);
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
[connection server_2]
|
|
[connection server_3]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
[connection server_1]
|
|
UPDATE t1 SET a=2;
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
[connection server_2]
|
|
[connection server_3]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
[connection server_1]
|
|
DELETE FROM t1 WHERE a=2;
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
[connection server_2]
|
|
[connection server_3]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
[connection server_1]
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t1 VALUES (2);
|
|
INSERT INTO t1 VALUES (3);
|
|
COMMIT;
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
[connection server_2]
|
|
[connection server_3]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
[connection server_1]
|
|
DROP TABLE t1;
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
include/sync_slave_sql_with_master.inc
|
|
[connection server_1]
|
|
[connection server_2]
|
|
[connection server_3]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
include/assert.inc [The difference between the immediate_commit_timestamp should be at least the SQL_Delay]
|
|
[connection server_1]
|
|
[connection server_2]
|
|
include/stop_slave_sql.inc
|
|
CHANGE MASTER TO MASTER_DELAY= 0;
|
|
include/start_slave_sql.inc
|
|
[connection server_3]
|
|
include/stop_slave_sql.inc
|
|
CHANGE MASTER TO MASTER_DELAY= 0;
|
|
include/start_slave_sql.inc
|
|
include/rpl_end.inc
|