Current Path : /home/usr.opt/mysql57/mysql-test/suite/rpl/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/mysql-test/suite/rpl/r/rpl_xa_gap_lock.result |
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] SET @saved_innodb_limit_optimistic_insert_debug = @@GLOBAL.innodb_limit_optimistic_insert_debug; SET @@GLOBAL.innodb_limit_optimistic_insert_debug = 2; [connection master] CREATE TABLE t1 ( c1 INT NOT NULL, KEY(c1) ) ENGINE=InnoDB; CREATE TABLE t2 ( c1 INT NOT NULL, FOREIGN KEY(c1) REFERENCES t1(c1) ) ENGINE=InnoDB; INSERT INTO t1 VALUES (1), (3), (4); [connection master1] XA START 'XA1'; INSERT INTO t1 values(2); XA END 'XA1'; [connection master] XA START 'XA2'; INSERT INTO t2 values(3); XA END 'XA2'; XA PREPARE 'XA2'; [connection master1] XA PREPARE 'XA1'; XA COMMIT 'XA1'; [connection master] XA COMMIT 'XA2'; include/sync_slave_sql_with_master.inc include/stop_slave.inc DROP TABLE t2, t1; RESET SLAVE; RESET MASTER; [connection master] Restore binary log from the master into the slave include/diff_tables.inc [master:test.t1, slave:test.t1] include/diff_tables.inc [master:test.t2, slave:test.t2] DROP TABLE t2, t1; [connection slave] SET @@GLOBAL.innodb_limit_optimistic_insert_debug = @saved_innodb_limit_optimistic_insert_debug; include/start_slave.inc include/rpl_end.inc