48 lines
2.1 KiB
Plaintext
48 lines
2.1 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]
|
|
[connection slave]
|
|
include/stop_slave.inc
|
|
CHANGE MASTER TO MASTER_AUTO_POSITION= 0;
|
|
include/start_slave.inc
|
|
[connection master]
|
|
CREATE TABLE t1 (c1 INT) ENGINE= InnoDB;
|
|
include/sync_slave_sql_with_master.inc
|
|
include/stop_slave_sql.inc
|
|
# Adding debug point 'stop_io_after_reading_query_log_event' to @@GLOBAL.debug
|
|
[connection master]
|
|
BEGIN;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t1 VALUES (2);
|
|
INSERT INTO t1 VALUES (3);
|
|
COMMIT;
|
|
INSERT INTO t1 VALUES (3 + 1);
|
|
[connection slave]
|
|
include/wait_for_slave_io_to_stop.inc
|
|
include/assert.inc [Exactly one GTID should have been retrieved before having all the transaction]
|
|
START SLAVE IO_THREAD;
|
|
include/wait_for_slave_io_to_stop.inc
|
|
include/assert.inc [Exactly one GTID should have been retrieved before having all the transaction]
|
|
START SLAVE IO_THREAD;
|
|
include/wait_for_slave_io_to_stop.inc
|
|
include/assert.inc [Exactly one GTID should have been retrieved before having all the transaction]
|
|
START SLAVE IO_THREAD;
|
|
include/wait_for_slave_io_to_stop.inc
|
|
include/assert.inc [Exactly one GTID should have been retrieved before having all the transaction]
|
|
# Removing debug point 'stop_io_after_reading_query_log_event' from @@GLOBAL.debug
|
|
START SLAVE IO_THREAD;
|
|
[connection master]
|
|
include/sync_slave_io_with_master.inc
|
|
include/assert.inc [Exactly three GTIDs should have been retrieved from master before restarting]
|
|
include/rpl_stop_server.inc [server_number=2]
|
|
include/rpl_start_server.inc [server_number=2]
|
|
include/start_slave.inc
|
|
[connection master]
|
|
include/sync_slave_io_with_master.inc
|
|
include/assert.inc [Exactly two GTIDs should have been retrieved from master after restarting]
|
|
[connection master]
|
|
DROP TABLE t1;
|
|
include/rpl_end.inc
|