67 lines
3.0 KiB
Plaintext
67 lines
3.0 KiB
Plaintext
include/master-slave.inc
|
|
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 master]
|
|
CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
|
INSERT INTO t1 VALUES (1),(2),(3),(4);
|
|
DROP TABLE t1;
|
|
CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
|
INSERT INTO t2 VALUES (1),(2);
|
|
INSERT INTO t2 VALUES (3),(4);
|
|
DROP TABLE t2;
|
|
include/stop_slave.inc
|
|
RESET SLAVE;
|
|
Warnings:
|
|
Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
|
|
Note 1760 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.
|
|
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1
|
|
include/wait_for_slave_sql_to_stop.inc
|
|
SELECT * FROM t1;
|
|
n
|
|
1
|
|
2
|
|
3
|
|
4
|
|
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
|
START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
|
|
include/wait_for_slave_sql_to_stop.inc
|
|
SELECT * FROM t1;
|
|
n
|
|
1
|
|
2
|
|
3
|
|
4
|
|
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
|
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2
|
|
include/wait_for_slave_sql_to_stop.inc
|
|
SELECT * FROM t2;
|
|
n
|
|
1
|
|
2
|
|
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
|
START SLAVE;
|
|
include/wait_for_slave_to_start.inc
|
|
include/stop_slave.inc
|
|
START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2
|
|
include/wait_for_slave_param.inc [Until_Log_Pos]
|
|
include/wait_for_slave_sql_to_stop.inc
|
|
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
|
START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=MASTER_LOG_POS;
|
|
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
|
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS, RELAY_LOG_POS=RELAY_LOG_POS;
|
|
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
|
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001';
|
|
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
|
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009';
|
|
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
|
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=MASTER_LOG_POS;
|
|
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
|
START SLAVE;
|
|
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
|
|
Warnings:
|
|
Note 3083 Replication thread(s) for channel '' are already runnning.
|
|
include/stop_slave.inc
|
|
RESET SLAVE;
|
|
include/rpl_end.inc
|