1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
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 connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
[connection master]
CREATE TABLE t1 (c1 INT KEY) ENGINE=InnoDB;
include/save_binlog_position.inc
include/sync_slave_sql_with_master.inc
include/stop_slave.inc
SET @saved_replica_transaction_retries = @@GLOBAL.replica_transaction_retries;
SET @saved_innodb_lock_wait_timeout = @@GLOBAL.innodb_lock_wait_timeout;
SET GLOBAL replica_transaction_retries = 1;
SET GLOBAL innodb_lock_wait_timeout = 1;
include/start_slave.inc
BEGIN;
INSERT INTO t1 VALUES(1);
[connection master]
INSERT INTO t1 VALUES(1);
[connection slave1]
include/wait_for_slave_sql_error.inc [errno=1205]
include/stop_slave_io.inc
CALL mtr.add_suppression(".*worker thread retried transaction 1 time.*");
CALL mtr.add_suppression(".*The replica coordinator and worker threads are "
"stopped, possibly leaving data in inconsistent.*");
include/assert.inc [count_transactions_retries should be greater than 0]
RESET SLAVE ALL;
Warnings:
Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
include/assert.inc [count_transactions_retries should be 0]
[connection slave]
ROLLBACK;
#
# Cleanup
#
SET GLOBAL replica_transaction_retries = @saved_replica_transaction_retries;
SET GLOBAL innodb_lock_wait_timeout = @saved_innodb_lock_wait_timeout;
CHANGE REPLICATION SOURCE TO SOURCE_LOG_FILE = "BINLOG_FILE", SOURCE_LOG_POS = BINLOG_POS,
SOURCE_USER='root', SOURCE_HOST='127.0.0.1', SOURCE_PORT=MASTER_PORT;
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 connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
include/start_slave.inc
[connection master]
DROP TABLE t1;
include/rpl_end.inc
|