polardbxengine/mysql-test/suite/rpl_gtid/r/rpl_gtid_server_sighup.result

45 lines
2.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]
include/stop_slave.inc
CHANGE MASTER TO MASTER_CONNECT_RETRY=30, MASTER_RETRY_COUNT=30;
include/start_slave.inc
CREATE TABLE pid_table(pid_no INT);
[connection server_1]
LOAD DATA LOCAL INFILE 'pid_file' INTO TABLE pid_table;
DELETE FROM pid_table;
include/sync_slave_sql_with_master.inc
[connection server_1]
include/show_binlog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000002 # Previous_gtids # # Gtid_set
master-bin.000002 # Gtid # # SET @@SESSION.GTID_NEXT= 'Gtid_set'
master-bin.000002 # Query # # BEGIN
master-bin.000002 # Query # # use `test`; DELETE FROM pid_table
master-bin.000002 # Xid # # COMMIT /* XID */
include/rpl_stop_server.inc [server_number=1]
include/rpl_start_server.inc [server_number=1 gtids=on]
include/sync_slave_sql_with_master.inc
[connection server_2]
LOAD DATA LOCAL INFILE 'pid_file' INTO TABLE pid_table;
[connection server_1]
DELETE FROM pid_table;
include/sync_slave_sql_with_master.inc
include/show_relaylog_events.inc
Log_name Pos Event_type Server_id End_log_pos Info
slave-relay-bin.000006 # Previous_gtids # # Gtid_set
slave-relay-bin.000006 # Format_desc # # SERVER_VERSION, BINLOG_VERSION
slave-relay-bin.000006 # Gtid # # SET @@SESSION.GTID_NEXT= 'Gtid_set'
slave-relay-bin.000006 # Query # # BEGIN
slave-relay-bin.000006 # Query # # use `test`; DELETE FROM pid_table
slave-relay-bin.000006 # Xid # # COMMIT /* XID */
include/rpl_stop_server.inc [server_number=2]
include/rpl_start_server.inc [server_number=2 gtids=on]
include/rpl_start_slaves.inc
[connection server_1]
DROP TABLE pid_table;
include/sync_slave_sql_with_master.inc
include/rpl_end.inc