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_gtid_stm_insert_delayed.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] CREATE SCHEMA IF NOT EXISTS mysqlslap; USE mysqlslap; select @@global.binlog_format; @@global.binlog_format STATEMENT CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)); FLUSH TABLE t1; SELECT COUNT(*) FROM t1; COUNT(*) 5000 include/sync_slave_sql_with_master.inc use mysqlslap; SELECT COUNT(*) FROM t1; COUNT(*) 5000 truncate table t1; insert delayed into t1 values(10, "my name"); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead flush table t1; insert delayed into t1 values(10, "is Bond"), (20, "James Bond"); ERROR 23000: Duplicate entry '10' for key 'PRIMARY' flush table t1; select * from t1; id name 10 my name include/sync_slave_sql_with_master.inc select * from t1; id name 10 my name delete from t1 where id!=10; insert delayed into t1 values(20, "is Bond"), (10, "James Bond"); ERROR 23000: Duplicate entry '10' for key 'PRIMARY' flush table t1; select * from t1; id name 10 my name 20 is Bond include/sync_slave_sql_with_master.inc select * from t1; id name 10 my name 20 is Bond USE test; DROP SCHEMA mysqlslap; include/sync_slave_sql_with_master.inc use test; FLUSH LOGS; FLUSH LOGS; CREATE TABLE t1(a int, UNIQUE(a)); INSERT DELAYED IGNORE INTO t1 VALUES(1); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead INSERT DELAYED IGNORE INTO t1 VALUES(1); Warnings: Warning 1287 'INSERT DELAYED' is deprecated and will be removed in a future release. Please use INSERT instead flush table t1; BEGIN use `test`; INSERT IGNORE INTO t1 VALUES(1) select * from t1; a 1 include/sync_slave_sql_with_master.inc On slave include/show_binlog_events.inc Log_name Pos Event_type Server_id End_log_pos Info slave-bin.000002 # Query # # use `test`; CREATE TABLE t1(a int, UNIQUE(a)) slave-bin.000002 # Query # # BEGIN slave-bin.000002 # Query # # use `test`; INSERT IGNORE INTO t1 VALUES(1) slave-bin.000002 # Query # # COMMIT select * from t1; a 1 drop table t1; include/sync_slave_sql_with_master.inc FLUSH LOGS; FLUSH LOGS; End of 5.0 tests include/rpl_end.inc