mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
manual merge: mysql-5.1-rep+2-delivery1 --> mysql-5.1-rpl-merge
Conflicts ========= Text conflict in .bzr-mysql/default.conf Text conflict in libmysqld/CMakeLists.txt Text conflict in libmysqld/Makefile.am Text conflict in mysql-test/collections/default.experimental Text conflict in mysql-test/extra/rpl_tests/rpl_row_sp006.test Text conflict in mysql-test/suite/binlog/r/binlog_tmp_table.result Text conflict in mysql-test/suite/rpl/r/rpl_loaddata.result Text conflict in mysql-test/suite/rpl/r/rpl_loaddata_fatal.result Text conflict in mysql-test/suite/rpl/r/rpl_row_create_table.result Text conflict in mysql-test/suite/rpl/r/rpl_row_sp006_InnoDB.result Text conflict in mysql-test/suite/rpl/r/rpl_stm_log.result Text conflict in mysql-test/suite/rpl_ndb/r/rpl_ndb_circular_simplex.result Text conflict in mysql-test/suite/rpl_ndb/r/rpl_ndb_sp006.result Text conflict in mysql-test/t/mysqlbinlog.test Text conflict in sql/CMakeLists.txt Text conflict in sql/Makefile.am Text conflict in sql/log_event_old.cc Text conflict in sql/rpl_rli.cc Text conflict in sql/slave.cc Text conflict in sql/sql_binlog.cc Text conflict in sql/sql_lex.h 21 conflicts encountered. NOTE ==== mysql-5.1-rpl-merge has been made a mirror of mysql-next-mr: - "mysql-5.1-rpl-merge$ bzr pull ../mysql-next-mr" This is the first cset (merge/...) committed after pulling from mysql-next-mr.
This commit is contained in:
@@ -78,3 +78,4 @@ parts.partition_syntax_ndb
|
||||
parts.partition_alter1_1_2_ndb
|
||||
parts.partition_basic_ndb
|
||||
parts.partition_mgm_lc0_ndb
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ commit;
|
||||
drop table t1;
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
|
||||
show binlog events in 'master-bin.000001' from 106;
|
||||
show binlog events in 'master-bin.000001' from 107;
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
|
||||
show binlog events in 'master-bin.000002' from 106;
|
||||
show binlog events in 'master-bin.000002' from 107;
|
||||
|
||||
|
||||
#
|
||||
|
||||
28
mysql-test/extra/binlog_tests/implicit.test
Normal file
28
mysql-test/extra/binlog_tests/implicit.test
Normal file
@@ -0,0 +1,28 @@
|
||||
# First part: outside a transaction
|
||||
RESET MASTER;
|
||||
eval $prepare;
|
||||
|
||||
INSERT INTO t1 VALUES (1);
|
||||
source include/show_binlog_events.inc;
|
||||
eval $statement;
|
||||
source include/show_binlog_events.inc;
|
||||
if (`select '$cleanup' != ''`) {
|
||||
eval $cleanup;
|
||||
}
|
||||
|
||||
# Second part: inside a transaction
|
||||
RESET MASTER;
|
||||
eval $prepare;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
source include/show_binlog_events.inc;
|
||||
eval $statement;
|
||||
source include/show_binlog_events.inc;
|
||||
INSERT INTO t1 VALUES (3);
|
||||
source include/show_binlog_events.inc;
|
||||
COMMIT;
|
||||
source include/show_binlog_events.inc;
|
||||
if (`select '$cleanup' != ''`) {
|
||||
eval $cleanup;
|
||||
}
|
||||
|
||||
@@ -323,12 +323,12 @@ let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
# and does not make slave to stop)
|
||||
if (`select @@binlog_format = 'ROW'`)
|
||||
{
|
||||
--exec $MYSQL_BINLOG --start-position=524 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/mix_innodb_myisam_binlog.output
|
||||
--exec $MYSQL_BINLOG --start-position=525 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/mix_innodb_myisam_binlog.output
|
||||
}
|
||||
|
||||
if (`select @@binlog_format = 'STATEMENT' || @@binlog_format = 'MIXED'`)
|
||||
{
|
||||
--exec $MYSQL_BINLOG --start-position=555 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/mix_innodb_myisam_binlog.output
|
||||
--exec $MYSQL_BINLOG --start-position=556 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/mix_innodb_myisam_binlog.output
|
||||
}
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
|
||||
@@ -407,37 +407,57 @@ sync_slave_with_master;
|
||||
###########################################
|
||||
# Bug#22234, Bug#23907 Extra Slave Col is not
|
||||
# erroring on extra col with no default values.
|
||||
########################################################
|
||||
###############################################################
|
||||
# Error reaction is up to sql_mode of the slave sql (bug#38173)
|
||||
#--echo *** Create t9 on slave ***
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
eval CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||
d TIMESTAMP,
|
||||
e INT NOT NULL) ENGINE=$engine_type;
|
||||
# Please, check BUG#47741 to see why you are not testing NDB.
|
||||
if (`SELECT $engine_type != 'NDB'`)
|
||||
{
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
eval CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||
d TIMESTAMP,
|
||||
e INT NOT NULL,
|
||||
f text not null,
|
||||
g text,
|
||||
h blob not null,
|
||||
i blob) ENGINE=$engine_type;
|
||||
|
||||
--echo *** Create t9 on Master ***
|
||||
connection master;
|
||||
eval CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||
--echo *** Create t9 on Master ***
|
||||
connection master;
|
||||
eval CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||
) ENGINE=$engine_type;
|
||||
RESET MASTER;
|
||||
RESET MASTER;
|
||||
|
||||
--echo *** Start Slave ***
|
||||
connection slave;
|
||||
START SLAVE;
|
||||
--echo *** Start Slave ***
|
||||
connection slave;
|
||||
START SLAVE;
|
||||
|
||||
--echo *** Master Data Insert ***
|
||||
connection master;
|
||||
set @b1 = 'b1b1b1b1';
|
||||
set @b1 = concat(@b1,@b1);
|
||||
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||
--echo *** Master Data Insert ***
|
||||
connection master;
|
||||
set @b1 = 'b1b1b1b1';
|
||||
|
||||
connection slave;
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||
--query_vertical SHOW SLAVE STATUS
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
set @b1 = concat(@b1,@b1);
|
||||
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||
|
||||
# the test would stop slave if @@sql_mode for the sql thread
|
||||
# was set to strict. Otherwise, as with this tests setup,
|
||||
# the implicit defaults will be inserted into fields even though
|
||||
# they are declared without DEFAULT clause.
|
||||
|
||||
sync_slave_with_master;
|
||||
select * from t9;
|
||||
|
||||
# todo: fix Bug #43992 slave sql thread can't tune own sql_mode ...
|
||||
# and add/restore waiting for stop test
|
||||
|
||||
#--source include/wait_for_slave_sql_to_stop.inc
|
||||
#--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
#--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||
#--query_vertical SHOW SLAVE STATUS
|
||||
#SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
#START SLAVE;
|
||||
}
|
||||
|
||||
#--echo *** Drop t9 ***
|
||||
#connection master;
|
||||
|
||||
@@ -72,7 +72,7 @@ start slave;
|
||||
sync_with_master;
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
|
||||
show slave status;
|
||||
--query_vertical show slave status;
|
||||
|
||||
# Trigger error again to test CHANGE MASTER
|
||||
|
||||
@@ -94,7 +94,7 @@ change master to master_user='test';
|
||||
change master to master_user='root';
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
|
||||
show slave status;
|
||||
--query_vertical show slave status;
|
||||
|
||||
# Trigger error again to test RESET SLAVE
|
||||
|
||||
@@ -116,7 +116,7 @@ stop slave;
|
||||
reset slave;
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
--replace_column 1 # 8 # 9 # 16 # 23 # 33 #
|
||||
show slave status;
|
||||
--query_vertical show slave status;
|
||||
|
||||
# Finally, see if logging is done ok on master for a failing LOAD DATA INFILE
|
||||
|
||||
|
||||
@@ -37,13 +37,13 @@ select count(*) from t1;
|
||||
show binlog events;
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/
|
||||
show binlog events from 106 limit 1;
|
||||
show binlog events from 107 limit 1;
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/
|
||||
show binlog events from 106 limit 2;
|
||||
show binlog events from 107 limit 2;
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/
|
||||
show binlog events from 106 limit 2,1;
|
||||
show binlog events from 107 limit 2,1;
|
||||
flush logs;
|
||||
|
||||
# We need an extra update before doing save_master_pos.
|
||||
|
||||
364
mysql-test/extra/rpl_tests/rpl_not_null.test
Normal file
364
mysql-test/extra/rpl_tests/rpl_not_null.test
Normal file
@@ -0,0 +1,364 @@
|
||||
#################################################################################
|
||||
# This test checks if the replication between "null" fields to either "null"
|
||||
# fields or "not null" fields works properly. In the first case, the execution
|
||||
# should work fine. In the second case, it may fail according to the sql_mode
|
||||
# being used.
|
||||
#
|
||||
# The test is devided in three main parts:
|
||||
#
|
||||
# 1 - NULL --> NULL (no failures)
|
||||
# 2 - NULL --> NOT NULL ( sql-mode = STRICT and failures)
|
||||
# 3 - NULL --> NOT NULL ( sql-mode != STRICT and no failures)
|
||||
#
|
||||
#################################################################################
|
||||
connection master;
|
||||
|
||||
SET SQL_LOG_BIN= 0;
|
||||
eval CREATE TABLE t1(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
eval CREATE TABLE t2(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
eval CREATE TABLE t3(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
eval CREATE TABLE t4(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
|
||||
connection slave;
|
||||
|
||||
eval CREATE TABLE t1(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
eval CREATE TABLE t2(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
eval CREATE TABLE t3(`a` INT, `b` DATE DEFAULT '0000-00-00',
|
||||
`c` INT DEFAULT 500,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
eval CREATE TABLE t4(`a` INT, `b` DATE DEFAULT '0000-00-00',
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
--echo ************* EXECUTION WITH INSERTS *************
|
||||
connection master;
|
||||
INSERT INTO t1(a,b,c) VALUES (1, null, 1);
|
||||
INSERT INTO t1(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
INSERT INTO t1(a,b) VALUES (3, null);
|
||||
INSERT INTO t1(a,c) VALUES (4, 4);
|
||||
INSERT INTO t1(a) VALUES (5);
|
||||
|
||||
INSERT INTO t2(a,b) VALUES (1, null);
|
||||
INSERT INTO t2(a,b) VALUES (2,'1111-11-11');
|
||||
INSERT INTO t2(a) VALUES (3);
|
||||
|
||||
INSERT INTO t3(a,b) VALUES (1, null);
|
||||
INSERT INTO t3(a,b) VALUES (2,'1111-11-11');
|
||||
INSERT INTO t3(a) VALUES (3);
|
||||
|
||||
INSERT INTO t4(a,b,c) VALUES (1, null, 1);
|
||||
INSERT INTO t4(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
INSERT INTO t4(a,b) VALUES (3, null);
|
||||
INSERT INTO t4(a,c) VALUES (4, 4);
|
||||
INSERT INTO t4(a) VALUES (5);
|
||||
|
||||
--echo ************* SHOWING THE RESULT SETS WITH INSERTS *************
|
||||
sync_slave_with_master;
|
||||
|
||||
--echo TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
let $diff_table_1=master:test.t1;
|
||||
let $diff_table_2=slave:test.t1;
|
||||
source include/diff_tables.inc;
|
||||
|
||||
let $diff_table_1=master:test.t2;
|
||||
let $diff_table_2=slave:test.t2;
|
||||
source include/diff_tables.inc;
|
||||
|
||||
--echo TABLES t2 and t3 must be different.
|
||||
connection master;
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
connection slave;
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
connection master;
|
||||
SELECT * FROM t4 ORDER BY a;
|
||||
connection slave;
|
||||
SELECT * FROM t4 ORDER BY a;
|
||||
|
||||
--echo ************* EXECUTION WITH UPDATES and REPLACES *************
|
||||
connection master;
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1(a,b,c) VALUES (1,'1111-11-11', 1);
|
||||
REPLACE INTO t1(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
UPDATE t1 set b= NULL, c= 300 where a= 1;
|
||||
REPLACE INTO t1(a,b,c) VALUES (2, NULL, 300);
|
||||
|
||||
--echo ************* SHOWING THE RESULT SETS WITH UPDATES and REPLACES *************
|
||||
sync_slave_with_master;
|
||||
|
||||
--echo TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
let $diff_table_1=master:test.t1;
|
||||
let $diff_table_2=slave:test.t1;
|
||||
source include/diff_tables.inc;
|
||||
|
||||
--echo ************* CLEANING *************
|
||||
connection master;
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
DROP TABLE t4;
|
||||
|
||||
sync_slave_with_master;
|
||||
|
||||
connection master;
|
||||
|
||||
SET SQL_LOG_BIN= 0;
|
||||
eval CREATE TABLE t1 (`a` INT, `b` BIT DEFAULT NULL, `c` BIT DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)) ENGINE= $engine;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
|
||||
connection slave;
|
||||
|
||||
eval CREATE TABLE t1 (`a` INT, `b` BIT DEFAULT b'01', `c` BIT DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)) ENGINE= $engine;
|
||||
|
||||
--echo ************* EXECUTION WITH INSERTS *************
|
||||
connection master;
|
||||
INSERT INTO t1(a,b,c) VALUES (1, null, b'01');
|
||||
INSERT INTO t1(a,b,c) VALUES (2,b'00', b'01');
|
||||
INSERT INTO t1(a,b) VALUES (3, null);
|
||||
INSERT INTO t1(a,c) VALUES (4, b'01');
|
||||
INSERT INTO t1(a) VALUES (5);
|
||||
|
||||
--echo ************* SHOWING THE RESULT SETS WITH INSERTS *************
|
||||
--echo TABLES t1 and t2 must be different.
|
||||
sync_slave_with_master;
|
||||
connection master;
|
||||
SELECT a,b+0,c+0 FROM t1 ORDER BY a;
|
||||
connection slave;
|
||||
SELECT a,b+0,c+0 FROM t1 ORDER BY a;
|
||||
|
||||
--echo ************* EXECUTION WITH UPDATES and REPLACES *************
|
||||
connection master;
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1(a,b,c) VALUES (1,b'00', b'01');
|
||||
REPLACE INTO t1(a,b,c) VALUES (2,b'00',b'01');
|
||||
UPDATE t1 set b= NULL, c= b'00' where a= 1;
|
||||
REPLACE INTO t1(a,b,c) VALUES (2, NULL, b'00');
|
||||
|
||||
--echo ************* SHOWING THE RESULT SETS WITH UPDATES and REPLACES *************
|
||||
--echo TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
sync_slave_with_master;
|
||||
let $diff_table_1=master:test.t1;
|
||||
let $diff_table_2=slave:test.t1;
|
||||
source include/diff_tables.inc;
|
||||
|
||||
connection master;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
sync_slave_with_master;
|
||||
|
||||
--echo ################################################################################
|
||||
--echo # NULL ---> NOT NULL (STRICT MODE)
|
||||
--echo # UNCOMMENT THIS AFTER FIXING BUG#43992
|
||||
--echo ################################################################################
|
||||
#connection slave;
|
||||
#SET GLOBAL sql_mode="TRADITIONAL";
|
||||
#
|
||||
#STOP SLAVE;
|
||||
#--source include/wait_for_slave_to_stop.inc
|
||||
#START SLAVE;
|
||||
#--source include/wait_for_slave_to_start.inc
|
||||
#
|
||||
#let $y=0;
|
||||
#while (`select $y < 6`)
|
||||
#{
|
||||
# connection master;
|
||||
#
|
||||
# SET SQL_LOG_BIN= 0;
|
||||
# eval CREATE TABLE t1(`a` INT NOT NULL, `b` INT,
|
||||
# PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
# eval CREATE TABLE t2(`a` INT NOT NULL, `b` INT,
|
||||
# PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
# eval CREATE TABLE t3(`a` INT NOT NULL, `b` INT,
|
||||
# PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
# SET SQL_LOG_BIN= 1;
|
||||
#
|
||||
# connection slave;
|
||||
#
|
||||
# eval CREATE TABLE t1(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
# `c` INT NOT NULL,
|
||||
# PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
# eval CREATE TABLE t2(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
# `c` INT,
|
||||
# PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
# eval CREATE TABLE t3(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
# `c` INT DEFAULT 500,
|
||||
# PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
#
|
||||
# if (`select $y=0`)
|
||||
# {
|
||||
# --echo ************* EXECUTION WITH INSERTS *************
|
||||
# connection master;
|
||||
# INSERT INTO t1(a) VALUES (1);
|
||||
# }
|
||||
#
|
||||
# if (`select $y=1`)
|
||||
# {
|
||||
# --echo ************* EXECUTION WITH INSERTS *************
|
||||
# connection master;
|
||||
# INSERT INTO t1(a, b) VALUES (1, NULL);
|
||||
# }
|
||||
#
|
||||
# if (`select $y=2`)
|
||||
# {
|
||||
# --echo ************* EXECUTION WITH UPDATES *************
|
||||
# connection master;
|
||||
# INSERT INTO t3(a, b) VALUES (1, 1);
|
||||
# INSERT INTO t3(a, b) VALUES (2, 1);
|
||||
# UPDATE t3 SET b = NULL where a= 1;
|
||||
# }
|
||||
#
|
||||
# if (`select $y=3`)
|
||||
# {
|
||||
# --echo ************* EXECUTION WITH INSERTS/REPLACES *************
|
||||
# connection master;
|
||||
# REPLACE INTO t3(a, b) VALUES (1, null);
|
||||
# }
|
||||
#
|
||||
# if (`select $y=4`)
|
||||
# {
|
||||
# --echo ************* EXECUTION WITH UPDATES/REPLACES *************
|
||||
# connection master;
|
||||
# INSERT INTO t3(a, b) VALUES (1, 1);
|
||||
# REPLACE INTO t3(a, b) VALUES (1, null);
|
||||
# }
|
||||
#
|
||||
# if (`select $y=5`)
|
||||
# {
|
||||
# --echo ************* EXECUTION WITH MULTI-ROW INSERTS *************
|
||||
# connection master;
|
||||
#
|
||||
# SET SQL_LOG_BIN= 0;
|
||||
# INSERT INTO t2(a, b) VALUES (1, 1);
|
||||
# INSERT INTO t2(a, b) VALUES (2, 1);
|
||||
# INSERT INTO t2(a, b) VALUES (3, null);
|
||||
# INSERT INTO t2(a, b) VALUES (4, 1);
|
||||
# INSERT INTO t2(a, b) VALUES (5, 1);
|
||||
# SET SQL_LOG_BIN= 1;
|
||||
#
|
||||
# INSERT INTO t2 SELECT a + 10, b from t2;
|
||||
# --echo The statement below is just executed to stop processing
|
||||
# INSERT INTO t1(a) VALUES (1);
|
||||
# }
|
||||
#
|
||||
# --echo ************* SHOWING THE RESULT SETS *************
|
||||
# connection slave;
|
||||
# --source include/wait_for_slave_sql_to_stop.inc
|
||||
# connection master;
|
||||
# SELECT * FROM t1 ORDER BY a;
|
||||
# connection slave;
|
||||
# SELECT * FROM t1 ORDER BY a;
|
||||
# connection master;
|
||||
# SELECT * FROM t2 ORDER BY a;
|
||||
# connection slave;
|
||||
# SELECT * FROM t2 ORDER BY a;
|
||||
# connection master;
|
||||
# SELECT * FROM t3 ORDER BY a;
|
||||
# connection slave;
|
||||
# SELECT * FROM t3 ORDER BY a;
|
||||
# --source include/reset_master_and_slave.inc
|
||||
#
|
||||
# connection master;
|
||||
#
|
||||
# DROP TABLE t1;
|
||||
# DROP TABLE t2;
|
||||
# DROP TABLE t3;
|
||||
#
|
||||
# sync_slave_with_master;
|
||||
#
|
||||
# inc $y;
|
||||
#}
|
||||
#connection slave;
|
||||
#SET GLOBAL sql_mode="";
|
||||
#
|
||||
#STOP SLAVE;
|
||||
#source include/wait_for_slave_to_stop.inc;
|
||||
#START SLAVE;
|
||||
#--source include/wait_for_slave_to_start.inc
|
||||
|
||||
--echo ################################################################################
|
||||
--echo # NULL ---> NOT NULL (NON-STRICT MODE)
|
||||
--echo ################################################################################
|
||||
connection master;
|
||||
|
||||
SET SQL_LOG_BIN= 0;
|
||||
eval CREATE TABLE t1(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
eval CREATE TABLE t2(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
eval CREATE TABLE t3(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
|
||||
connection slave;
|
||||
|
||||
eval CREATE TABLE t1(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT NOT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
eval CREATE TABLE t2(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
eval CREATE TABLE t3(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT DEFAULT 500,
|
||||
PRIMARY KEY(`a`)) ENGINE=$engine DEFAULT CHARSET=LATIN1;
|
||||
|
||||
--echo ************* EXECUTION WITH INSERTS *************
|
||||
connection master;
|
||||
INSERT INTO t1(a) VALUES (1);
|
||||
INSERT INTO t1(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t1(a, b) VALUES (3, 1);
|
||||
|
||||
INSERT INTO t2(a) VALUES (1);
|
||||
INSERT INTO t2(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t2(a, b) VALUES (3, 1);
|
||||
|
||||
INSERT INTO t3(a) VALUES (1);
|
||||
INSERT INTO t3(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t3(a, b) VALUES (3, 1);
|
||||
INSERT INTO t3(a, b) VALUES (4, 1);
|
||||
REPLACE INTO t3(a, b) VALUES (5, null);
|
||||
|
||||
REPLACE INTO t3(a, b) VALUES (3, null);
|
||||
UPDATE t3 SET b = NULL where a = 4;
|
||||
|
||||
--echo ************* SHOWING THE RESULT SETS *************
|
||||
connection master;
|
||||
sync_slave_with_master;
|
||||
|
||||
connection master;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
connection slave;
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
connection master;
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
connection slave;
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
connection master;
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
connection slave;
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
|
||||
connection master;
|
||||
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
|
||||
sync_slave_with_master;
|
||||
@@ -111,21 +111,18 @@ SELECT a,b,x FROM t1_int ORDER BY a;
|
||||
SELECT a,b,HEX(x),HEX(y),HEX(z) FROM t1_bit ORDER BY a;
|
||||
SELECT a,b,x FROM t1_char ORDER BY a;
|
||||
|
||||
# Each of these inserts should generate an error and stop the slave
|
||||
|
||||
connection master;
|
||||
INSERT INTO t9 VALUES (2);
|
||||
sync_slave_with_master;
|
||||
# Now slave is guaranteed to be running
|
||||
connection master;
|
||||
INSERT INTO t1_nodef VALUES (1,2);
|
||||
connection slave;
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
--replace_column 1 # 4 # 7 # 8 # 9 # 20 <Last_Error> 22 # 23 # 33 # 35 <Last_IO_Errno> 36 <Last_IO_Error> 38 <Last_SQL_Error>
|
||||
--query_vertical SHOW SLAVE STATUS
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
# Last insert on wider slave table succeeds while slave sql sql_mode permits.
|
||||
# The previous version of the above test expected slave sql to stop.
|
||||
# bug#38173 relaxed conditions to stop only with the strict mode.
|
||||
sync_slave_with_master;
|
||||
select count(*) from t1_nodef;
|
||||
|
||||
#
|
||||
# Replicating to tables with fewer columns at the end works as of WL#3228
|
||||
|
||||
121
mysql-test/extra/rpl_tests/rpl_show_relaylog_events.inc
Normal file
121
mysql-test/extra/rpl_tests/rpl_show_relaylog_events.inc
Normal file
@@ -0,0 +1,121 @@
|
||||
-- connection master
|
||||
|
||||
CREATE TABLE t1 (a INT);
|
||||
INSERT INTO t1 VALUES (1);
|
||||
INSERT INTO t1 VALUES (2);
|
||||
INSERT INTO t1 VALUES (3);
|
||||
INSERT INTO t1 VALUES (4);
|
||||
INSERT INTO t1 VALUES (5);
|
||||
INSERT INTO t1 VALUES (6);
|
||||
|
||||
-- echo [MASTER] ********* SOW BINLOG EVENTS IN ... *********
|
||||
let $binary_log_file= master-bin.000001;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [MASTER] ********* SOW BINLOG EVENTS *********
|
||||
let $binary_log_file= ;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [MASTER] ********* SOW BINLOG EVENTS ... LIMIT rows *********
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= 3;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [MASTER] ********* SOW BINLOG EVENTS ... LIMIT offset,rows *********
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= 3;
|
||||
let $binary_log_limit_offset= 1;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
# clear show_binlog_event/show_relaylog_events parameters
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= ;
|
||||
let $binary_log_limit_offset= ;
|
||||
|
||||
-- sync_slave_with_master
|
||||
|
||||
-- echo [SLAVE] ********* SOW BINLOG EVENTS IN ... *********
|
||||
let $binary_log_file= slave-bin.000001;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW BINLOG EVENTS *********
|
||||
let $binary_log_file= ;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW BINLOG EVENTS ... LIMIT rows *********
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= 3;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW BINLOG EVENTS ... LIMIT offset,rows *********
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= 3;
|
||||
let $binary_log_limit_offset= 1;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
# clear show_binlog_event/show_relaylog_events parameters
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= ;
|
||||
let $binary_log_limit_offset= ;
|
||||
|
||||
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
|
||||
let $binary_log_file= slave-relay-bin.000003;
|
||||
-- source include/show_relaylog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS *********
|
||||
let $binary_log_file= ;
|
||||
-- source include/show_relaylog_events.inc
|
||||
|
||||
-- echo [MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT rows *********
|
||||
let $binary_log_file= slave-relay-bin.000003;
|
||||
let $binary_log_limit_row= 3;
|
||||
let $binary_log_limit_offset= ;
|
||||
-- source include/show_relaylog_events.inc
|
||||
|
||||
-- echo [MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT offset,rows *********
|
||||
let $binary_log_file= slave-relay-bin.000003;
|
||||
let $binary_log_limit_offset= 1;
|
||||
let $binary_log_limit_row= 3;
|
||||
-- source include/show_relaylog_events.inc
|
||||
|
||||
FLUSH LOGS;
|
||||
|
||||
-- connection master
|
||||
FLUSH LOGS;
|
||||
DROP TABLE t1;
|
||||
|
||||
# clear show_binlog_event/show_relaylog_events parameters
|
||||
let $binary_log_file= ;
|
||||
let $binary_log_limit_row= ;
|
||||
let $binary_log_limit_offset= ;
|
||||
|
||||
-- echo [MASTER] ********* SOW BINLOG EVENTS IN ... *********
|
||||
let $binary_log_file= master-bin.000002;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [MASTER] ********* SOW BINLOG EVENTS *********
|
||||
let $binary_log_file= ;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- sync_slave_with_master
|
||||
|
||||
-- echo [SLAVE] ********* SOW BINLOG EVENTS IN ... *********
|
||||
let $binary_log_file= slave-bin.000002;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW BINLOG EVENTS *********
|
||||
let $binary_log_file= ;
|
||||
-- source include/show_binlog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
|
||||
let $binary_log_file= slave-relay-bin.000005;
|
||||
-- source include/show_relaylog_events.inc
|
||||
|
||||
-- echo [SLAVE] ********* SOW RELAYLOG EVENTS *********
|
||||
let $binary_log_file= ;
|
||||
-- source include/show_relaylog_events.inc
|
||||
|
||||
# clear show_binlog_event/show_relaylog_events parameters
|
||||
let $binary_log_name= ;
|
||||
let $binary_log_limit_row= ;
|
||||
let $binary_log_limit_offset= ;
|
||||
15
mysql-test/include/have_semisync_plugin.inc
Normal file
15
mysql-test/include/have_semisync_plugin.inc
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Check if dynamic loading is supported
|
||||
#
|
||||
--require r/have_dynamic_loading.require
|
||||
disable_query_log;
|
||||
show variables like 'have_dynamic_loading';
|
||||
enable_query_log;
|
||||
|
||||
#
|
||||
# Check if the variable SEMISYNC_MASTER_PLUGIN is set
|
||||
#
|
||||
if (`select LENGTH('$SEMISYNC_MASTER_PLUGIN') = 0`)
|
||||
{
|
||||
skip Need semisync plugins;
|
||||
}
|
||||
4
mysql-test/include/have_ssl_communication.inc
Normal file
4
mysql-test/include/have_ssl_communication.inc
Normal file
@@ -0,0 +1,4 @@
|
||||
-- require r/have_ssl.require
|
||||
disable_query_log;
|
||||
show variables like 'have_ssl';
|
||||
enable_query_log;
|
||||
@@ -8,5 +8,7 @@ connect (slave1,127.0.0.1,root,,test,$SLAVE_MYPORT,);
|
||||
|
||||
-- source include/master-slave-reset.inc
|
||||
|
||||
connection master;
|
||||
sync_slave_with_master;
|
||||
# Set the default connection to 'master'
|
||||
connection master;
|
||||
|
||||
@@ -69,7 +69,21 @@ let $_fake_relay_log_purge= `SELECT @@global.relay_log_purge`;
|
||||
# Create relay log file.
|
||||
copy_file $fake_relay_log $_fake_relay_log;
|
||||
# Create relay log index.
|
||||
--exec echo $_fake_filename-fake.000001 > $_fake_relay_index
|
||||
|
||||
# After patch for BUG#12190, the filename used in CHANGE MASTER
|
||||
# RELAY_LOG_FILE will be automatically added the directory of the
|
||||
# relay log before comparison, thus we need to added the directory
|
||||
# part (./ on unix .\ on windows) when faking the relay-log-bin.index.
|
||||
|
||||
if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows") = 0`)
|
||||
{
|
||||
eval select './$_fake_filename-fake.000001\n' into dumpfile '$_fake_relay_index';
|
||||
}
|
||||
|
||||
if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows") != 0`)
|
||||
{
|
||||
eval select '.\\\\$_fake_filename-fake.000001\n' into dumpfile '$_fake_relay_index';
|
||||
}
|
||||
|
||||
# Setup replication from existing relay log.
|
||||
eval CHANGE MASTER TO MASTER_HOST='dummy.localdomain', RELAY_LOG_FILE='$_fake_filename-fake.000001', RELAY_LOG_POS=4;
|
||||
|
||||
@@ -1,10 +1,35 @@
|
||||
# $binlog_start can be set by caller or take a default value
|
||||
# $binary_log_file the name of the log file show
|
||||
# $binary_log_limit_row - sets the number of binlog rows to be returned
|
||||
# $binary_log_limit_offset - sets the offset where to start returning events
|
||||
|
||||
let $show_binlog_events= show binlog events;
|
||||
|
||||
if (!$binlog_start)
|
||||
{
|
||||
let $binlog_start=106;
|
||||
# defaults to chop the first event in the binary log
|
||||
let $binlog_start=107;
|
||||
}
|
||||
|
||||
if (!`SELECT '$binary_log_file' = ''`)
|
||||
{
|
||||
let $show_binlog_events= $show_binlog_events in '$binary_log_file';
|
||||
}
|
||||
let $show_binlog_events= $show_binlog_events from $binlog_start;
|
||||
|
||||
if ($binary_log_limit_row)
|
||||
{
|
||||
let $limit= limit;
|
||||
if ($binary_log_limit_offset)
|
||||
{
|
||||
let $limit= $limit $binary_log_limit_offset, ;
|
||||
}
|
||||
|
||||
let $limit= $limit $binary_log_limit_row;
|
||||
let $show_binlog_events= $show_binlog_events $limit;
|
||||
}
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $binlog_start <binlog_start>
|
||||
--replace_column 2 # 4 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /file_id=[0-9]+/file_id=#/ /block_len=[0-9]+/block_len=#/
|
||||
--eval show binlog events from $binlog_start
|
||||
--eval $show_binlog_events
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--let $binlog_start=106
|
||||
--let $binlog_start=107
|
||||
--replace_result $binlog_start <binlog_start>
|
||||
--replace_column 2 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/
|
||||
|
||||
35
mysql-test/include/show_relaylog_events.inc
Normal file
35
mysql-test/include/show_relaylog_events.inc
Normal file
@@ -0,0 +1,35 @@
|
||||
# $binlog_start can be set by caller or take a default value
|
||||
# $binary_log_file the name of the log file show
|
||||
# $binary_log_limit_row - sets the number of binlog rows to be returned
|
||||
# $binary_log_limit_offset - sets the offset where to start returning events
|
||||
|
||||
let $show_binlog_events= show relaylog events;
|
||||
|
||||
if (!$binlog_start)
|
||||
{
|
||||
# defaults to chop the first event in the binary log
|
||||
let $binlog_start=106;
|
||||
}
|
||||
|
||||
if (!`SELECT '$binary_log_file' = ''`)
|
||||
{
|
||||
let $show_binlog_events= $show_binlog_events in '$binary_log_file';
|
||||
}
|
||||
let $show_binlog_events= $show_binlog_events from $binlog_start;
|
||||
|
||||
if ($binary_log_limit_row)
|
||||
{
|
||||
let $limit= limit;
|
||||
if ($binary_log_limit_offset)
|
||||
{
|
||||
let $limit= $limit $binary_log_limit_offset, ;
|
||||
}
|
||||
|
||||
let $limit= $limit $binary_log_limit_row;
|
||||
let $show_binlog_events= $show_binlog_events $limit;
|
||||
}
|
||||
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR $binlog_start <binlog_start>
|
||||
--replace_column 2 # 4 # 5 #
|
||||
--replace_regex /\/\* xid=.* \*\//\/* XID *\// /table_id: [0-9]+/table_id: #/ /file_id=[0-9]+/file_id=#/ /block_len=[0-9]+/block_len=#/ /Server ver:.*$/SERVER_VERSION, BINLOG_VERSION/
|
||||
--eval $show_binlog_events
|
||||
@@ -22,7 +22,7 @@ eval $test_insert;
|
||||
|
||||
connection slave;
|
||||
START SLAVE;
|
||||
wait_for_slave_to_stop;
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||
--query_vertical SHOW SLAVE STATUS
|
||||
|
||||
@@ -7,7 +7,7 @@ let $counter= 500;
|
||||
let $mysql_errno= 0;
|
||||
while (!$mysql_errno)
|
||||
{
|
||||
--error 0,1053,2002,2006,2013
|
||||
--error 0,1040,1053,2002,2003,2006,2013
|
||||
show status;
|
||||
|
||||
dec $counter;
|
||||
|
||||
@@ -1830,6 +1830,30 @@ sub environment_setup {
|
||||
$ENV{'EXAMPLE_PLUGIN_LOAD'}= "";
|
||||
}
|
||||
|
||||
# --------------------------------------------------------------------------
|
||||
# Add the path where mysqld will find semisync plugins
|
||||
# --------------------------------------------------------------------------
|
||||
my $lib_semisync_master_plugin=
|
||||
mtr_file_exists(vs_config_dirs('plugin/semisync',"libsemisync_master.so"),
|
||||
"$basedir/plugin/semisync/.libs/libsemisync_master.so",
|
||||
"$basedir/lib/mysql/plugin/libsemisync_master.so");
|
||||
my $lib_semisync_slave_plugin=
|
||||
mtr_file_exists(vs_config_dirs('plugin/semisync',"libsemisync_slave.so"),
|
||||
"$basedir/plugin/semisync/.libs/libsemisync_slave.so",
|
||||
"$basedir/lib/mysql/plugin/libsemisync_slave.so");
|
||||
if ($lib_semisync_master_plugin && $lib_semisync_slave_plugin)
|
||||
{
|
||||
$ENV{'SEMISYNC_MASTER_PLUGIN'}= basename($lib_semisync_master_plugin);
|
||||
$ENV{'SEMISYNC_SLAVE_PLUGIN'}= basename($lib_semisync_slave_plugin);
|
||||
$ENV{'SEMISYNC_PLUGIN_OPT'}= "--plugin-dir=".dirname($lib_semisync_master_plugin);
|
||||
}
|
||||
else
|
||||
{
|
||||
$ENV{'SEMISYNC_MASTER_PLUGIN'}= "";
|
||||
$ENV{'SEMISYNC_SLAVE_PLUGIN'}= "";
|
||||
$ENV{'SEMISYNC_PLUGIN_OPT'}="--plugin-dir=";
|
||||
}
|
||||
|
||||
# ----------------------------------------------------
|
||||
# Add the path where mysqld will find mypluglib.so
|
||||
# ----------------------------------------------------
|
||||
|
||||
@@ -29,22 +29,22 @@ HEX(s1) HEX(s2) d
|
||||
466F6F2773206120426172 ED40ED41ED42 47.93
|
||||
DROP PROCEDURE bug18293|
|
||||
DROP TABLE t4|
|
||||
SHOW BINLOG EVENTS FROM 370|
|
||||
SHOW BINLOG EVENTS FROM 371|
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 370 Query 1 536 use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
|
||||
master-bin.000001 371 Query 1 537 use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
|
||||
s2 CHAR(50) CHARACTER SET cp932,
|
||||
d DECIMAL(10,2))
|
||||
master-bin.000001 536 Query 1 785 use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `bug18293`(IN ins1 CHAR(50),
|
||||
master-bin.000001 537 Query 1 786 use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `bug18293`(IN ins1 CHAR(50),
|
||||
IN ins2 CHAR(50) CHARACTER SET cp932,
|
||||
IN ind DECIMAL(10,2))
|
||||
BEGIN
|
||||
INSERT INTO t4 VALUES (ins1, ins2, ind);
|
||||
END
|
||||
master-bin.000001 785 Query 1 1049 use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 0x466F6F2773206120426172 COLLATE 'latin1_swedish_ci'), NAME_CONST('ins2',_cp932 0xED40ED41ED42 COLLATE 'cp932_japanese_ci'), NAME_CONST('ind',47.93))
|
||||
master-bin.000001 1049 Query 1 1138 use `test`; DROP PROCEDURE bug18293
|
||||
master-bin.000001 1138 Query 1 1217 use `test`; DROP TABLE t4
|
||||
master-bin.000001 786 Query 1 1050 use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 0x466F6F2773206120426172 COLLATE 'latin1_swedish_ci'), NAME_CONST('ins2',_cp932 0xED40ED41ED42 COLLATE 'cp932_japanese_ci'), NAME_CONST('ind',47.93))
|
||||
master-bin.000001 1050 Query 1 1139 use `test`; DROP PROCEDURE bug18293
|
||||
master-bin.000001 1139 Query 1 1218 use `test`; DROP TABLE t4
|
||||
End of 5.0 tests
|
||||
SHOW BINLOG EVENTS FROM 365;
|
||||
SHOW BINLOG EVENTS FROM 366;
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Wrong offset or I/O error
|
||||
Bug#44352 UPPER/LOWER function doesn't work correctly on cp932 and sjis environment.
|
||||
CREATE TABLE t1 (a varchar(16)) character set cp932;
|
||||
|
||||
@@ -375,7 +375,7 @@ SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
|
||||
event_name definer
|
||||
e1 mysqltest_u1@localhost
|
||||
ALTER DEFINER=root@localhost EVENT e1 ON SCHEDULE EVERY 1 HOUR;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
SELECT event_name, definer FROM INFORMATION_SCHEMA.EVENTS;
|
||||
event_name definer
|
||||
e1 mysqltest_u1@localhost
|
||||
@@ -386,7 +386,7 @@ event_name definer
|
||||
e1 mysqltest_u1@localhost
|
||||
DROP EVENT e1;
|
||||
CREATE DEFINER=root@localhost EVENT e1 ON SCHEDULE EVERY 1 DAY DO SELECT 1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
DROP EVENT e1;
|
||||
ERROR HY000: Unknown event 'e1'
|
||||
DROP USER mysqltest_u1@localhost;
|
||||
|
||||
@@ -9,13 +9,13 @@ INSERT t1 VALUES (1);
|
||||
FLUSH TABLES WITH READ LOCK;
|
||||
SHOW MASTER STATUS;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 106
|
||||
master-bin.000001 107
|
||||
# Switch to connection con1
|
||||
COMMIT;
|
||||
# Switch to connection con2
|
||||
SHOW MASTER STATUS;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 106
|
||||
master-bin.000001 107
|
||||
UNLOCK TABLES;
|
||||
# Switch to connection con1
|
||||
DROP TABLE t1;
|
||||
|
||||
@@ -121,9 +121,9 @@ mysqltest_5@host5, mysqltest_6@host6, mysqltest_7@host7;
|
||||
create database mysqltest_1;
|
||||
grant select, insert, update on `mysqltest\_1`.* to mysqltest_1@localhost;
|
||||
set sql_log_off = 1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
set sql_log_bin = 0;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
delete from mysql.user where user like 'mysqltest\_1';
|
||||
delete from mysql.db where user like 'mysqltest\_1';
|
||||
drop database mysqltest_1;
|
||||
|
||||
@@ -121,7 +121,7 @@ grant insert on v1 to testdb_2@localhost;
|
||||
create view v5 as select f1 from t1;
|
||||
grant show view on v5 to testdb_2@localhost;
|
||||
create definer=`no_such_user`@`no_such_host` view v6 as select f1 from t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
use testdb_1;
|
||||
create view v6 as select f1 from t1;
|
||||
grant show view on v6 to testdb_2@localhost;
|
||||
|
||||
@@ -604,7 +604,7 @@ a b
|
||||
4 4
|
||||
show master status /* there must be the UPDATE query event */;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 206
|
||||
master-bin.000001 207
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
insert into t1 values (1,2),(3,4),(4,4);
|
||||
@@ -614,7 +614,7 @@ UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
|
||||
ERROR 23000: Duplicate entry '4' for key 'PRIMARY'
|
||||
show master status /* there must be the UPDATE query event */;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 221
|
||||
master-bin.000001 222
|
||||
drop table t1, t2;
|
||||
set @@session.binlog_format= @sav_binlog_format;
|
||||
drop table if exists t1, t2, t3;
|
||||
|
||||
@@ -3554,11 +3554,11 @@ use test;
|
||||
create user mysqltest_1@localhost;
|
||||
create table t1(a int, b varchar(34));
|
||||
reset master;
|
||||
mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied; you need the RELOAD privilege for this operation (1227)
|
||||
mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied; you need the RELOAD privilege for this operation (1227)
|
||||
mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied; you need (at least one of) the RELOAD privilege(s) for this operation (1227)
|
||||
mysqldump: Couldn't execute 'FLUSH /*!40101 LOCAL */ TABLES': Access denied; you need (at least one of) the RELOAD privilege(s) for this operation (1227)
|
||||
grant RELOAD on *.* to mysqltest_1@localhost;
|
||||
mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation (1227)
|
||||
mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need the SUPER,REPLICATION CLIENT privilege for this operation (1227)
|
||||
mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation (1227)
|
||||
mysqldump: Couldn't execute 'SHOW MASTER STATUS': Access denied; you need (at least one of) the SUPER,REPLICATION CLIENT privilege(s) for this operation (1227)
|
||||
grant REPLICATION CLIENT on *.* to mysqltest_1@localhost;
|
||||
drop table t1;
|
||||
drop user mysqltest_1@localhost;
|
||||
|
||||
@@ -92,14 +92,14 @@ HEX(c1)
|
||||
C3
|
||||
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug32533.txt' FIELDS ENCLOSED BY 0xC3 FROM t1;
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
TRUNCATE t1;
|
||||
SELECT HEX(LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug32533.txt'));
|
||||
HEX(LOAD_FILE('MYSQLTEST_VARDIR/tmp/bug32533.txt'))
|
||||
C35CC3C30A
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug32533.txt' INTO TABLE t1 FIELDS ENCLOSED BY 0xC3;
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
SELECT HEX(c1) FROM t1;
|
||||
HEX(c1)
|
||||
C3
|
||||
@@ -124,17 +124,17 @@ ERROR 42000: Field separator argument is not what is expected; check the manual
|
||||
# LOAD DATA rises error or has unpredictable result -- to be fixed later
|
||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ENCLOSED BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ENCLOSED BY 'ъ';
|
||||
ERROR 42000: Field separator argument is not what is expected; check the manual
|
||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS ESCAPED BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS ESCAPED BY 'ъ';
|
||||
ERROR 42000: Field separator argument is not what is expected; check the manual
|
||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FIELDS TERMINATED BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
##################################################
|
||||
1ъABC-<2D><><EFBFBD>ъDEF-<2D><><EFBFBD>
|
||||
2ъ\Nъ\N
|
||||
@@ -142,7 +142,7 @@ Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
TRUNCATE t2;
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS TERMINATED BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1265 Data truncated for column 'a' at row 1
|
||||
Warning 1261 Row 1 doesn't contain data for all columns
|
||||
Warning 1261 Row 1 doesn't contain data for all columns
|
||||
@@ -156,7 +156,7 @@ a b c
|
||||
2 NULL NULL
|
||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES STARTING BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
##################################################
|
||||
ъ1 ABC-<2D><><EFBFBD> DEF-<2D><><EFBFBD>
|
||||
ъ2 \N \N
|
||||
@@ -164,20 +164,20 @@ Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
TRUNCATE t2;
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary LINES STARTING BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
|
||||
a b c
|
||||
1 ABC-АБВ DEF-ÂÃÄ
|
||||
2 NULL NULL
|
||||
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES TERMINATED BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
##################################################
|
||||
1 ABC-<2D><><EFBFBD> DEF-<2D><><EFBFBD>ъ2 \N \Nъ##################################################
|
||||
TRUNCATE t2;
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary LINES TERMINATED BY 'ъ';
|
||||
Warnings:
|
||||
Warning 1638 Non-ASCII separator arguments are not fully supported
|
||||
Warning 1639 Non-ASCII separator arguments are not fully supported
|
||||
SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
|
||||
a b c
|
||||
1 ABC-АБВ DEF-ÂÃÄ
|
||||
|
||||
@@ -349,9 +349,9 @@ CREATE FUNCTION wl2897_f1() RETURNS INT RETURN 1;
|
||||
---> connection: mysqltest_1_con
|
||||
USE mysqltest;
|
||||
CREATE DEFINER=root@localhost PROCEDURE wl2897_p2() SELECT 2;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
CREATE DEFINER=root@localhost FUNCTION wl2897_f2() RETURNS INT RETURN 2;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
|
||||
---> connection: mysqltest_2_con
|
||||
use mysqltest;
|
||||
|
||||
@@ -14,15 +14,5 @@ end|
|
||||
reset master|
|
||||
insert into t2 values (bug23333(),1)|
|
||||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
||||
show binlog events from 106 /* with fixes for #23333 will show there is the query */|
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # #
|
||||
master-bin.000001 # Table_map 1 # #
|
||||
master-bin.000001 # Table_map 1 # #
|
||||
master-bin.000001 # Write_rows 1 # #
|
||||
master-bin.000001 # Query 1 # #
|
||||
select count(*),@a from t1 /* must be 1,1 */|
|
||||
count(*) @a
|
||||
1 1
|
||||
drop table t1,t2;
|
||||
drop function if exists bug23333;
|
||||
|
||||
@@ -1327,7 +1327,7 @@ create table t1
|
||||
123456789*123456789*123456789*123456789*
|
||||
123456789*123456789*123456789*123456789*');
|
||||
Warnings:
|
||||
Warning 1629 Comment for field 'i' is too long (max = 255)
|
||||
Warning 1630 Comment for field 'i' is too long (max = 255)
|
||||
select column_name, column_comment from information_schema.columns where
|
||||
table_schema = 'test' and table_name = 't1';
|
||||
column_name column_comment
|
||||
|
||||
@@ -117,7 +117,7 @@ CREATE DEFINER='mysqltest_inv'@'localhost'
|
||||
TRIGGER trg1 BEFORE INSERT ON t1
|
||||
FOR EACH ROW
|
||||
SET @new_sum = 0;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
|
||||
---> connection: default
|
||||
use mysqltest_db1;
|
||||
@@ -471,7 +471,7 @@ SELECT trigger_name FROM INFORMATION_SCHEMA.TRIGGERS
|
||||
WHERE trigger_schema = 'db1';
|
||||
trigger_name
|
||||
SHOW CREATE TRIGGER db1.trg;
|
||||
ERROR 42000: Access denied; you need the TRIGGER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the TRIGGER privilege(s) for this operation
|
||||
DROP USER 'no_rights'@'localhost';
|
||||
DROP DATABASE db1;
|
||||
End of 5.1 tests.
|
||||
|
||||
@@ -16,7 +16,7 @@ create table mysqltest.t2 (a int, b int);
|
||||
grant select on mysqltest.t1 to mysqltest_1@localhost;
|
||||
grant create view,select on test.* to mysqltest_1@localhost;
|
||||
create definer=root@localhost view v1 as select * from mysqltest.t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create view v1 as select * from mysqltest.t1;
|
||||
alter view v1 as select * from mysqltest.t1;
|
||||
ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 'v1'
|
||||
@@ -779,11 +779,11 @@ GRANT CREATE VIEW ON db26813.v2 TO u26813@localhost;
|
||||
GRANT DROP, CREATE VIEW ON db26813.v3 TO u26813@localhost;
|
||||
GRANT SELECT ON db26813.t1 TO u26813@localhost;
|
||||
ALTER VIEW v1 AS SELECT f2 FROM t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
ALTER VIEW v2 AS SELECT f2 FROM t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
ALTER VIEW v3 AS SELECT f2 FROM t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
SHOW CREATE VIEW v3;
|
||||
View Create View character_set_client collation_connection
|
||||
v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v3` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
|
||||
@@ -807,9 +807,9 @@ GRANT DROP, CREATE VIEW ON mysqltest_29908.v1 TO u29908_2@localhost;
|
||||
GRANT DROP, CREATE VIEW, SHOW VIEW ON mysqltest_29908.v2 TO u29908_2@localhost;
|
||||
GRANT SELECT ON mysqltest_29908.t1 TO u29908_2@localhost;
|
||||
ALTER VIEW v1 AS SELECT f2 FROM t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
ALTER VIEW v2 AS SELECT f2 FROM t1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
SHOW CREATE VIEW v2;
|
||||
View Create View character_set_client collation_connection
|
||||
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f1` AS `f1` from `t1` latin1 latin1_swedish_ci
|
||||
|
||||
@@ -13,16 +13,16 @@ set session sql_log_bin = 1;
|
||||
set global sql_log_bin = 1;
|
||||
ERROR HY000: Variable 'sql_log_bin' is a SESSION variable and can't be used with SET GLOBAL
|
||||
set session sql_log_bin = 1;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
**** Variable BINLOG_FORMAT ****
|
||||
[root]
|
||||
set global binlog_format = row;
|
||||
set session binlog_format = row;
|
||||
[plain]
|
||||
set global binlog_format = row;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
set session binlog_format = row;
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
**** Clean up ****
|
||||
set global binlog_format = @saved_binlog_format;
|
||||
drop user mysqltest_1@localhost;
|
||||
|
||||
345
mysql-test/suite/binlog/r/binlog_implicit_commit.result
Normal file
345
mysql-test/suite/binlog/r/binlog_implicit_commit.result
Normal file
@@ -0,0 +1,345 @@
|
||||
CREATE TABLE t1 (id INT) ENGINE = InnoDB;
|
||||
SET BINLOG_FORMAT = STATEMENT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (2)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (2)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (3)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (2)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (3)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (2)
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (3)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (2)
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (3)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (2)
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (3)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
SET BINLOG_FORMAT = ROW;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 1;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
SET AUTOCOMMIT = 0;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
INSERT INTO t1 VALUES (3);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
LOCK TABLES t1 WRITE;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
INSERT INTO t1 VALUES (2);
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
UNLOCK TABLES;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
COMMIT;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
DROP TABLE t1;
|
||||
@@ -156,9 +156,10 @@ select * from t2 /* must be (3,1), (4,4) */;
|
||||
a b
|
||||
1 1
|
||||
4 4
|
||||
show master status /* there must no UPDATE in binlog */;
|
||||
there must no UPDATE in binlog
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 106
|
||||
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
delete from t1;
|
||||
delete from t2;
|
||||
insert into t1 values (1,2),(3,4),(4,4);
|
||||
@@ -166,8 +167,9 @@ insert into t2 values (1,2),(3,4),(4,4);
|
||||
reset master;
|
||||
UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
|
||||
ERROR 23000: Duplicate entry '4' for key 'PRIMARY'
|
||||
show master status /* there must be no UPDATE query event */;
|
||||
there must no UPDATE in binlog
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 106
|
||||
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
drop table t1, t2;
|
||||
End of tests
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,11 +4,11 @@ insert into t1 values (1,2);
|
||||
commit;
|
||||
show binlog events;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server ver: #, Binlog ver: #
|
||||
master-bin.000001 106 Query 1 213 use `test`; create table t1 (a int, b int) engine=innodb
|
||||
master-bin.000001 213 Query 1 281 BEGIN
|
||||
master-bin.000001 281 Query 1 371 use `test`; insert into t1 values (1,2)
|
||||
master-bin.000001 371 Xid 1 398 COMMIT /* XID */
|
||||
master-bin.000001 4 Format_desc 1 107 Server ver: #, Binlog ver: #
|
||||
master-bin.000001 107 Query 1 214 use `test`; create table t1 (a int, b int) engine=innodb
|
||||
master-bin.000001 214 Query 1 282 BEGIN
|
||||
master-bin.000001 282 Query 1 372 use `test`; insert into t1 values (1,2)
|
||||
master-bin.000001 372 Xid 1 399 COMMIT /* XID */
|
||||
drop table t1;
|
||||
drop table if exists t1, t2;
|
||||
reset master;
|
||||
@@ -36,7 +36,7 @@ create table t1 (n int) engine=innodb;
|
||||
begin;
|
||||
commit;
|
||||
drop table t1;
|
||||
show binlog events in 'master-bin.000001' from 106;
|
||||
show binlog events in 'master-bin.000001' from 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; create table t1 (n int) engine=innodb
|
||||
master-bin.000001 # Query 1 # BEGIN
|
||||
@@ -142,7 +142,7 @@ master-bin.000001 # Query 1 # use `test`; insert into t1 values(2 + 4)
|
||||
master-bin.000001 # Query 1 # use `test`; insert into t1 values(1 + 4)
|
||||
master-bin.000001 # Xid 1 # COMMIT /* xid= */
|
||||
master-bin.000001 # Rotate 1 # master-bin.000002;pos=4
|
||||
show binlog events in 'master-bin.000002' from 106;
|
||||
show binlog events in 'master-bin.000002' from 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000002 # Query 1 # use `test`; drop table t1
|
||||
set @ac = @@autocommit;
|
||||
@@ -157,425 +157,425 @@ commit;
|
||||
drop table t1;
|
||||
show binlog events from 0;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server version, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 205 use `test`; create table t1(n int) engine=innodb
|
||||
master-bin.000001 205 Query 1 273 BEGIN
|
||||
master-bin.000001 273 Query 1 361 use `test`; insert into t1 values (1)
|
||||
master-bin.000001 361 Query 1 449 use `test`; insert into t1 values (2)
|
||||
master-bin.000001 449 Query 1 537 use `test`; insert into t1 values (3)
|
||||
master-bin.000001 537 Xid 1 564 COMMIT /* XID */
|
||||
master-bin.000001 564 Query 1 640 use `test`; drop table t1
|
||||
master-bin.000001 4 Format_desc 1 107 Server version, Binlog ver: 4
|
||||
master-bin.000001 107 Query 1 206 use `test`; create table t1(n int) engine=innodb
|
||||
master-bin.000001 206 Query 1 274 BEGIN
|
||||
master-bin.000001 274 Query 1 362 use `test`; insert into t1 values (1)
|
||||
master-bin.000001 362 Query 1 450 use `test`; insert into t1 values (2)
|
||||
master-bin.000001 450 Query 1 538 use `test`; insert into t1 values (3)
|
||||
master-bin.000001 538 Xid 1 565 COMMIT /* XID */
|
||||
master-bin.000001 565 Query 1 641 use `test`; drop table t1
|
||||
set @bcs = @@binlog_cache_size;
|
||||
set global binlog_cache_size=4096;
|
||||
reset master;
|
||||
create table t1 (a int) engine=innodb;
|
||||
show binlog events from 0;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server version, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 206 use `test`; create table t1 (a int) engine=innodb
|
||||
master-bin.000001 206 Query 1 274 BEGIN
|
||||
master-bin.000001 274 Query 1 365 use `test`; insert into t1 values( 400 )
|
||||
master-bin.000001 365 Query 1 456 use `test`; insert into t1 values( 399 )
|
||||
master-bin.000001 456 Query 1 547 use `test`; insert into t1 values( 398 )
|
||||
master-bin.000001 547 Query 1 638 use `test`; insert into t1 values( 397 )
|
||||
master-bin.000001 638 Query 1 729 use `test`; insert into t1 values( 396 )
|
||||
master-bin.000001 729 Query 1 820 use `test`; insert into t1 values( 395 )
|
||||
master-bin.000001 820 Query 1 911 use `test`; insert into t1 values( 394 )
|
||||
master-bin.000001 911 Query 1 1002 use `test`; insert into t1 values( 393 )
|
||||
master-bin.000001 1002 Query 1 1093 use `test`; insert into t1 values( 392 )
|
||||
master-bin.000001 1093 Query 1 1184 use `test`; insert into t1 values( 391 )
|
||||
master-bin.000001 1184 Query 1 1275 use `test`; insert into t1 values( 390 )
|
||||
master-bin.000001 1275 Query 1 1366 use `test`; insert into t1 values( 389 )
|
||||
master-bin.000001 1366 Query 1 1457 use `test`; insert into t1 values( 388 )
|
||||
master-bin.000001 1457 Query 1 1548 use `test`; insert into t1 values( 387 )
|
||||
master-bin.000001 1548 Query 1 1639 use `test`; insert into t1 values( 386 )
|
||||
master-bin.000001 1639 Query 1 1730 use `test`; insert into t1 values( 385 )
|
||||
master-bin.000001 1730 Query 1 1821 use `test`; insert into t1 values( 384 )
|
||||
master-bin.000001 1821 Query 1 1912 use `test`; insert into t1 values( 383 )
|
||||
master-bin.000001 1912 Query 1 2003 use `test`; insert into t1 values( 382 )
|
||||
master-bin.000001 2003 Query 1 2094 use `test`; insert into t1 values( 381 )
|
||||
master-bin.000001 2094 Query 1 2185 use `test`; insert into t1 values( 380 )
|
||||
master-bin.000001 2185 Query 1 2276 use `test`; insert into t1 values( 379 )
|
||||
master-bin.000001 2276 Query 1 2367 use `test`; insert into t1 values( 378 )
|
||||
master-bin.000001 2367 Query 1 2458 use `test`; insert into t1 values( 377 )
|
||||
master-bin.000001 2458 Query 1 2549 use `test`; insert into t1 values( 376 )
|
||||
master-bin.000001 2549 Query 1 2640 use `test`; insert into t1 values( 375 )
|
||||
master-bin.000001 2640 Query 1 2731 use `test`; insert into t1 values( 374 )
|
||||
master-bin.000001 2731 Query 1 2822 use `test`; insert into t1 values( 373 )
|
||||
master-bin.000001 2822 Query 1 2913 use `test`; insert into t1 values( 372 )
|
||||
master-bin.000001 2913 Query 1 3004 use `test`; insert into t1 values( 371 )
|
||||
master-bin.000001 3004 Query 1 3095 use `test`; insert into t1 values( 370 )
|
||||
master-bin.000001 3095 Query 1 3186 use `test`; insert into t1 values( 369 )
|
||||
master-bin.000001 3186 Query 1 3277 use `test`; insert into t1 values( 368 )
|
||||
master-bin.000001 3277 Query 1 3368 use `test`; insert into t1 values( 367 )
|
||||
master-bin.000001 3368 Query 1 3459 use `test`; insert into t1 values( 366 )
|
||||
master-bin.000001 3459 Query 1 3550 use `test`; insert into t1 values( 365 )
|
||||
master-bin.000001 3550 Query 1 3641 use `test`; insert into t1 values( 364 )
|
||||
master-bin.000001 3641 Query 1 3732 use `test`; insert into t1 values( 363 )
|
||||
master-bin.000001 3732 Query 1 3823 use `test`; insert into t1 values( 362 )
|
||||
master-bin.000001 3823 Query 1 3914 use `test`; insert into t1 values( 361 )
|
||||
master-bin.000001 3914 Query 1 4005 use `test`; insert into t1 values( 360 )
|
||||
master-bin.000001 4005 Query 1 4096 use `test`; insert into t1 values( 359 )
|
||||
master-bin.000001 4096 Query 1 4187 use `test`; insert into t1 values( 358 )
|
||||
master-bin.000001 4187 Query 1 4278 use `test`; insert into t1 values( 357 )
|
||||
master-bin.000001 4278 Query 1 4369 use `test`; insert into t1 values( 356 )
|
||||
master-bin.000001 4369 Query 1 4460 use `test`; insert into t1 values( 355 )
|
||||
master-bin.000001 4460 Query 1 4551 use `test`; insert into t1 values( 354 )
|
||||
master-bin.000001 4551 Query 1 4642 use `test`; insert into t1 values( 353 )
|
||||
master-bin.000001 4642 Query 1 4733 use `test`; insert into t1 values( 352 )
|
||||
master-bin.000001 4733 Query 1 4824 use `test`; insert into t1 values( 351 )
|
||||
master-bin.000001 4824 Query 1 4915 use `test`; insert into t1 values( 350 )
|
||||
master-bin.000001 4915 Query 1 5006 use `test`; insert into t1 values( 349 )
|
||||
master-bin.000001 5006 Query 1 5097 use `test`; insert into t1 values( 348 )
|
||||
master-bin.000001 5097 Query 1 5188 use `test`; insert into t1 values( 347 )
|
||||
master-bin.000001 5188 Query 1 5279 use `test`; insert into t1 values( 346 )
|
||||
master-bin.000001 5279 Query 1 5370 use `test`; insert into t1 values( 345 )
|
||||
master-bin.000001 5370 Query 1 5461 use `test`; insert into t1 values( 344 )
|
||||
master-bin.000001 5461 Query 1 5552 use `test`; insert into t1 values( 343 )
|
||||
master-bin.000001 5552 Query 1 5643 use `test`; insert into t1 values( 342 )
|
||||
master-bin.000001 5643 Query 1 5734 use `test`; insert into t1 values( 341 )
|
||||
master-bin.000001 5734 Query 1 5825 use `test`; insert into t1 values( 340 )
|
||||
master-bin.000001 5825 Query 1 5916 use `test`; insert into t1 values( 339 )
|
||||
master-bin.000001 5916 Query 1 6007 use `test`; insert into t1 values( 338 )
|
||||
master-bin.000001 6007 Query 1 6098 use `test`; insert into t1 values( 337 )
|
||||
master-bin.000001 6098 Query 1 6189 use `test`; insert into t1 values( 336 )
|
||||
master-bin.000001 6189 Query 1 6280 use `test`; insert into t1 values( 335 )
|
||||
master-bin.000001 6280 Query 1 6371 use `test`; insert into t1 values( 334 )
|
||||
master-bin.000001 6371 Query 1 6462 use `test`; insert into t1 values( 333 )
|
||||
master-bin.000001 6462 Query 1 6553 use `test`; insert into t1 values( 332 )
|
||||
master-bin.000001 6553 Query 1 6644 use `test`; insert into t1 values( 331 )
|
||||
master-bin.000001 6644 Query 1 6735 use `test`; insert into t1 values( 330 )
|
||||
master-bin.000001 6735 Query 1 6826 use `test`; insert into t1 values( 329 )
|
||||
master-bin.000001 6826 Query 1 6917 use `test`; insert into t1 values( 328 )
|
||||
master-bin.000001 6917 Query 1 7008 use `test`; insert into t1 values( 327 )
|
||||
master-bin.000001 7008 Query 1 7099 use `test`; insert into t1 values( 326 )
|
||||
master-bin.000001 7099 Query 1 7190 use `test`; insert into t1 values( 325 )
|
||||
master-bin.000001 7190 Query 1 7281 use `test`; insert into t1 values( 324 )
|
||||
master-bin.000001 7281 Query 1 7372 use `test`; insert into t1 values( 323 )
|
||||
master-bin.000001 7372 Query 1 7463 use `test`; insert into t1 values( 322 )
|
||||
master-bin.000001 7463 Query 1 7554 use `test`; insert into t1 values( 321 )
|
||||
master-bin.000001 7554 Query 1 7645 use `test`; insert into t1 values( 320 )
|
||||
master-bin.000001 7645 Query 1 7736 use `test`; insert into t1 values( 319 )
|
||||
master-bin.000001 7736 Query 1 7827 use `test`; insert into t1 values( 318 )
|
||||
master-bin.000001 7827 Query 1 7918 use `test`; insert into t1 values( 317 )
|
||||
master-bin.000001 7918 Query 1 8009 use `test`; insert into t1 values( 316 )
|
||||
master-bin.000001 8009 Query 1 8100 use `test`; insert into t1 values( 315 )
|
||||
master-bin.000001 8100 Query 1 8191 use `test`; insert into t1 values( 314 )
|
||||
master-bin.000001 8191 Query 1 8282 use `test`; insert into t1 values( 313 )
|
||||
master-bin.000001 8282 Query 1 8373 use `test`; insert into t1 values( 312 )
|
||||
master-bin.000001 8373 Query 1 8464 use `test`; insert into t1 values( 311 )
|
||||
master-bin.000001 8464 Query 1 8555 use `test`; insert into t1 values( 310 )
|
||||
master-bin.000001 8555 Query 1 8646 use `test`; insert into t1 values( 309 )
|
||||
master-bin.000001 8646 Query 1 8737 use `test`; insert into t1 values( 308 )
|
||||
master-bin.000001 8737 Query 1 8828 use `test`; insert into t1 values( 307 )
|
||||
master-bin.000001 8828 Query 1 8919 use `test`; insert into t1 values( 306 )
|
||||
master-bin.000001 8919 Query 1 9010 use `test`; insert into t1 values( 305 )
|
||||
master-bin.000001 9010 Query 1 9101 use `test`; insert into t1 values( 304 )
|
||||
master-bin.000001 9101 Query 1 9192 use `test`; insert into t1 values( 303 )
|
||||
master-bin.000001 9192 Query 1 9283 use `test`; insert into t1 values( 302 )
|
||||
master-bin.000001 9283 Query 1 9374 use `test`; insert into t1 values( 301 )
|
||||
master-bin.000001 9374 Query 1 9465 use `test`; insert into t1 values( 300 )
|
||||
master-bin.000001 9465 Query 1 9556 use `test`; insert into t1 values( 299 )
|
||||
master-bin.000001 9556 Query 1 9647 use `test`; insert into t1 values( 298 )
|
||||
master-bin.000001 9647 Query 1 9738 use `test`; insert into t1 values( 297 )
|
||||
master-bin.000001 9738 Query 1 9829 use `test`; insert into t1 values( 296 )
|
||||
master-bin.000001 9829 Query 1 9920 use `test`; insert into t1 values( 295 )
|
||||
master-bin.000001 9920 Query 1 10011 use `test`; insert into t1 values( 294 )
|
||||
master-bin.000001 10011 Query 1 10102 use `test`; insert into t1 values( 293 )
|
||||
master-bin.000001 10102 Query 1 10193 use `test`; insert into t1 values( 292 )
|
||||
master-bin.000001 10193 Query 1 10284 use `test`; insert into t1 values( 291 )
|
||||
master-bin.000001 10284 Query 1 10375 use `test`; insert into t1 values( 290 )
|
||||
master-bin.000001 10375 Query 1 10466 use `test`; insert into t1 values( 289 )
|
||||
master-bin.000001 10466 Query 1 10557 use `test`; insert into t1 values( 288 )
|
||||
master-bin.000001 10557 Query 1 10648 use `test`; insert into t1 values( 287 )
|
||||
master-bin.000001 10648 Query 1 10739 use `test`; insert into t1 values( 286 )
|
||||
master-bin.000001 10739 Query 1 10830 use `test`; insert into t1 values( 285 )
|
||||
master-bin.000001 10830 Query 1 10921 use `test`; insert into t1 values( 284 )
|
||||
master-bin.000001 10921 Query 1 11012 use `test`; insert into t1 values( 283 )
|
||||
master-bin.000001 11012 Query 1 11103 use `test`; insert into t1 values( 282 )
|
||||
master-bin.000001 11103 Query 1 11194 use `test`; insert into t1 values( 281 )
|
||||
master-bin.000001 11194 Query 1 11285 use `test`; insert into t1 values( 280 )
|
||||
master-bin.000001 11285 Query 1 11376 use `test`; insert into t1 values( 279 )
|
||||
master-bin.000001 11376 Query 1 11467 use `test`; insert into t1 values( 278 )
|
||||
master-bin.000001 11467 Query 1 11558 use `test`; insert into t1 values( 277 )
|
||||
master-bin.000001 11558 Query 1 11649 use `test`; insert into t1 values( 276 )
|
||||
master-bin.000001 11649 Query 1 11740 use `test`; insert into t1 values( 275 )
|
||||
master-bin.000001 11740 Query 1 11831 use `test`; insert into t1 values( 274 )
|
||||
master-bin.000001 11831 Query 1 11922 use `test`; insert into t1 values( 273 )
|
||||
master-bin.000001 11922 Query 1 12013 use `test`; insert into t1 values( 272 )
|
||||
master-bin.000001 12013 Query 1 12104 use `test`; insert into t1 values( 271 )
|
||||
master-bin.000001 12104 Query 1 12195 use `test`; insert into t1 values( 270 )
|
||||
master-bin.000001 12195 Query 1 12286 use `test`; insert into t1 values( 269 )
|
||||
master-bin.000001 12286 Query 1 12377 use `test`; insert into t1 values( 268 )
|
||||
master-bin.000001 12377 Query 1 12468 use `test`; insert into t1 values( 267 )
|
||||
master-bin.000001 12468 Query 1 12559 use `test`; insert into t1 values( 266 )
|
||||
master-bin.000001 12559 Query 1 12650 use `test`; insert into t1 values( 265 )
|
||||
master-bin.000001 12650 Query 1 12741 use `test`; insert into t1 values( 264 )
|
||||
master-bin.000001 12741 Query 1 12832 use `test`; insert into t1 values( 263 )
|
||||
master-bin.000001 12832 Query 1 12923 use `test`; insert into t1 values( 262 )
|
||||
master-bin.000001 12923 Query 1 13014 use `test`; insert into t1 values( 261 )
|
||||
master-bin.000001 13014 Query 1 13105 use `test`; insert into t1 values( 260 )
|
||||
master-bin.000001 13105 Query 1 13196 use `test`; insert into t1 values( 259 )
|
||||
master-bin.000001 13196 Query 1 13287 use `test`; insert into t1 values( 258 )
|
||||
master-bin.000001 13287 Query 1 13378 use `test`; insert into t1 values( 257 )
|
||||
master-bin.000001 13378 Query 1 13469 use `test`; insert into t1 values( 256 )
|
||||
master-bin.000001 13469 Query 1 13560 use `test`; insert into t1 values( 255 )
|
||||
master-bin.000001 13560 Query 1 13651 use `test`; insert into t1 values( 254 )
|
||||
master-bin.000001 13651 Query 1 13742 use `test`; insert into t1 values( 253 )
|
||||
master-bin.000001 13742 Query 1 13833 use `test`; insert into t1 values( 252 )
|
||||
master-bin.000001 13833 Query 1 13924 use `test`; insert into t1 values( 251 )
|
||||
master-bin.000001 13924 Query 1 14015 use `test`; insert into t1 values( 250 )
|
||||
master-bin.000001 14015 Query 1 14106 use `test`; insert into t1 values( 249 )
|
||||
master-bin.000001 14106 Query 1 14197 use `test`; insert into t1 values( 248 )
|
||||
master-bin.000001 14197 Query 1 14288 use `test`; insert into t1 values( 247 )
|
||||
master-bin.000001 14288 Query 1 14379 use `test`; insert into t1 values( 246 )
|
||||
master-bin.000001 14379 Query 1 14470 use `test`; insert into t1 values( 245 )
|
||||
master-bin.000001 14470 Query 1 14561 use `test`; insert into t1 values( 244 )
|
||||
master-bin.000001 14561 Query 1 14652 use `test`; insert into t1 values( 243 )
|
||||
master-bin.000001 14652 Query 1 14743 use `test`; insert into t1 values( 242 )
|
||||
master-bin.000001 14743 Query 1 14834 use `test`; insert into t1 values( 241 )
|
||||
master-bin.000001 14834 Query 1 14925 use `test`; insert into t1 values( 240 )
|
||||
master-bin.000001 14925 Query 1 15016 use `test`; insert into t1 values( 239 )
|
||||
master-bin.000001 15016 Query 1 15107 use `test`; insert into t1 values( 238 )
|
||||
master-bin.000001 15107 Query 1 15198 use `test`; insert into t1 values( 237 )
|
||||
master-bin.000001 15198 Query 1 15289 use `test`; insert into t1 values( 236 )
|
||||
master-bin.000001 15289 Query 1 15380 use `test`; insert into t1 values( 235 )
|
||||
master-bin.000001 15380 Query 1 15471 use `test`; insert into t1 values( 234 )
|
||||
master-bin.000001 15471 Query 1 15562 use `test`; insert into t1 values( 233 )
|
||||
master-bin.000001 15562 Query 1 15653 use `test`; insert into t1 values( 232 )
|
||||
master-bin.000001 15653 Query 1 15744 use `test`; insert into t1 values( 231 )
|
||||
master-bin.000001 15744 Query 1 15835 use `test`; insert into t1 values( 230 )
|
||||
master-bin.000001 15835 Query 1 15926 use `test`; insert into t1 values( 229 )
|
||||
master-bin.000001 15926 Query 1 16017 use `test`; insert into t1 values( 228 )
|
||||
master-bin.000001 16017 Query 1 16108 use `test`; insert into t1 values( 227 )
|
||||
master-bin.000001 16108 Query 1 16199 use `test`; insert into t1 values( 226 )
|
||||
master-bin.000001 16199 Query 1 16290 use `test`; insert into t1 values( 225 )
|
||||
master-bin.000001 16290 Query 1 16381 use `test`; insert into t1 values( 224 )
|
||||
master-bin.000001 16381 Query 1 16472 use `test`; insert into t1 values( 223 )
|
||||
master-bin.000001 16472 Query 1 16563 use `test`; insert into t1 values( 222 )
|
||||
master-bin.000001 16563 Query 1 16654 use `test`; insert into t1 values( 221 )
|
||||
master-bin.000001 16654 Query 1 16745 use `test`; insert into t1 values( 220 )
|
||||
master-bin.000001 16745 Query 1 16836 use `test`; insert into t1 values( 219 )
|
||||
master-bin.000001 16836 Query 1 16927 use `test`; insert into t1 values( 218 )
|
||||
master-bin.000001 16927 Query 1 17018 use `test`; insert into t1 values( 217 )
|
||||
master-bin.000001 17018 Query 1 17109 use `test`; insert into t1 values( 216 )
|
||||
master-bin.000001 17109 Query 1 17200 use `test`; insert into t1 values( 215 )
|
||||
master-bin.000001 17200 Query 1 17291 use `test`; insert into t1 values( 214 )
|
||||
master-bin.000001 17291 Query 1 17382 use `test`; insert into t1 values( 213 )
|
||||
master-bin.000001 17382 Query 1 17473 use `test`; insert into t1 values( 212 )
|
||||
master-bin.000001 17473 Query 1 17564 use `test`; insert into t1 values( 211 )
|
||||
master-bin.000001 17564 Query 1 17655 use `test`; insert into t1 values( 210 )
|
||||
master-bin.000001 17655 Query 1 17746 use `test`; insert into t1 values( 209 )
|
||||
master-bin.000001 17746 Query 1 17837 use `test`; insert into t1 values( 208 )
|
||||
master-bin.000001 17837 Query 1 17928 use `test`; insert into t1 values( 207 )
|
||||
master-bin.000001 17928 Query 1 18019 use `test`; insert into t1 values( 206 )
|
||||
master-bin.000001 18019 Query 1 18110 use `test`; insert into t1 values( 205 )
|
||||
master-bin.000001 18110 Query 1 18201 use `test`; insert into t1 values( 204 )
|
||||
master-bin.000001 18201 Query 1 18292 use `test`; insert into t1 values( 203 )
|
||||
master-bin.000001 18292 Query 1 18383 use `test`; insert into t1 values( 202 )
|
||||
master-bin.000001 18383 Query 1 18474 use `test`; insert into t1 values( 201 )
|
||||
master-bin.000001 18474 Query 1 18565 use `test`; insert into t1 values( 200 )
|
||||
master-bin.000001 18565 Query 1 18656 use `test`; insert into t1 values( 199 )
|
||||
master-bin.000001 18656 Query 1 18747 use `test`; insert into t1 values( 198 )
|
||||
master-bin.000001 18747 Query 1 18838 use `test`; insert into t1 values( 197 )
|
||||
master-bin.000001 18838 Query 1 18929 use `test`; insert into t1 values( 196 )
|
||||
master-bin.000001 18929 Query 1 19020 use `test`; insert into t1 values( 195 )
|
||||
master-bin.000001 19020 Query 1 19111 use `test`; insert into t1 values( 194 )
|
||||
master-bin.000001 19111 Query 1 19202 use `test`; insert into t1 values( 193 )
|
||||
master-bin.000001 19202 Query 1 19293 use `test`; insert into t1 values( 192 )
|
||||
master-bin.000001 19293 Query 1 19384 use `test`; insert into t1 values( 191 )
|
||||
master-bin.000001 19384 Query 1 19475 use `test`; insert into t1 values( 190 )
|
||||
master-bin.000001 19475 Query 1 19566 use `test`; insert into t1 values( 189 )
|
||||
master-bin.000001 19566 Query 1 19657 use `test`; insert into t1 values( 188 )
|
||||
master-bin.000001 19657 Query 1 19748 use `test`; insert into t1 values( 187 )
|
||||
master-bin.000001 19748 Query 1 19839 use `test`; insert into t1 values( 186 )
|
||||
master-bin.000001 19839 Query 1 19930 use `test`; insert into t1 values( 185 )
|
||||
master-bin.000001 19930 Query 1 20021 use `test`; insert into t1 values( 184 )
|
||||
master-bin.000001 20021 Query 1 20112 use `test`; insert into t1 values( 183 )
|
||||
master-bin.000001 20112 Query 1 20203 use `test`; insert into t1 values( 182 )
|
||||
master-bin.000001 20203 Query 1 20294 use `test`; insert into t1 values( 181 )
|
||||
master-bin.000001 20294 Query 1 20385 use `test`; insert into t1 values( 180 )
|
||||
master-bin.000001 20385 Query 1 20476 use `test`; insert into t1 values( 179 )
|
||||
master-bin.000001 20476 Query 1 20567 use `test`; insert into t1 values( 178 )
|
||||
master-bin.000001 20567 Query 1 20658 use `test`; insert into t1 values( 177 )
|
||||
master-bin.000001 20658 Query 1 20749 use `test`; insert into t1 values( 176 )
|
||||
master-bin.000001 20749 Query 1 20840 use `test`; insert into t1 values( 175 )
|
||||
master-bin.000001 20840 Query 1 20931 use `test`; insert into t1 values( 174 )
|
||||
master-bin.000001 20931 Query 1 21022 use `test`; insert into t1 values( 173 )
|
||||
master-bin.000001 21022 Query 1 21113 use `test`; insert into t1 values( 172 )
|
||||
master-bin.000001 21113 Query 1 21204 use `test`; insert into t1 values( 171 )
|
||||
master-bin.000001 21204 Query 1 21295 use `test`; insert into t1 values( 170 )
|
||||
master-bin.000001 21295 Query 1 21386 use `test`; insert into t1 values( 169 )
|
||||
master-bin.000001 21386 Query 1 21477 use `test`; insert into t1 values( 168 )
|
||||
master-bin.000001 21477 Query 1 21568 use `test`; insert into t1 values( 167 )
|
||||
master-bin.000001 21568 Query 1 21659 use `test`; insert into t1 values( 166 )
|
||||
master-bin.000001 21659 Query 1 21750 use `test`; insert into t1 values( 165 )
|
||||
master-bin.000001 21750 Query 1 21841 use `test`; insert into t1 values( 164 )
|
||||
master-bin.000001 21841 Query 1 21932 use `test`; insert into t1 values( 163 )
|
||||
master-bin.000001 21932 Query 1 22023 use `test`; insert into t1 values( 162 )
|
||||
master-bin.000001 22023 Query 1 22114 use `test`; insert into t1 values( 161 )
|
||||
master-bin.000001 22114 Query 1 22205 use `test`; insert into t1 values( 160 )
|
||||
master-bin.000001 22205 Query 1 22296 use `test`; insert into t1 values( 159 )
|
||||
master-bin.000001 22296 Query 1 22387 use `test`; insert into t1 values( 158 )
|
||||
master-bin.000001 22387 Query 1 22478 use `test`; insert into t1 values( 157 )
|
||||
master-bin.000001 22478 Query 1 22569 use `test`; insert into t1 values( 156 )
|
||||
master-bin.000001 22569 Query 1 22660 use `test`; insert into t1 values( 155 )
|
||||
master-bin.000001 22660 Query 1 22751 use `test`; insert into t1 values( 154 )
|
||||
master-bin.000001 22751 Query 1 22842 use `test`; insert into t1 values( 153 )
|
||||
master-bin.000001 22842 Query 1 22933 use `test`; insert into t1 values( 152 )
|
||||
master-bin.000001 22933 Query 1 23024 use `test`; insert into t1 values( 151 )
|
||||
master-bin.000001 23024 Query 1 23115 use `test`; insert into t1 values( 150 )
|
||||
master-bin.000001 23115 Query 1 23206 use `test`; insert into t1 values( 149 )
|
||||
master-bin.000001 23206 Query 1 23297 use `test`; insert into t1 values( 148 )
|
||||
master-bin.000001 23297 Query 1 23388 use `test`; insert into t1 values( 147 )
|
||||
master-bin.000001 23388 Query 1 23479 use `test`; insert into t1 values( 146 )
|
||||
master-bin.000001 23479 Query 1 23570 use `test`; insert into t1 values( 145 )
|
||||
master-bin.000001 23570 Query 1 23661 use `test`; insert into t1 values( 144 )
|
||||
master-bin.000001 23661 Query 1 23752 use `test`; insert into t1 values( 143 )
|
||||
master-bin.000001 23752 Query 1 23843 use `test`; insert into t1 values( 142 )
|
||||
master-bin.000001 23843 Query 1 23934 use `test`; insert into t1 values( 141 )
|
||||
master-bin.000001 23934 Query 1 24025 use `test`; insert into t1 values( 140 )
|
||||
master-bin.000001 24025 Query 1 24116 use `test`; insert into t1 values( 139 )
|
||||
master-bin.000001 24116 Query 1 24207 use `test`; insert into t1 values( 138 )
|
||||
master-bin.000001 24207 Query 1 24298 use `test`; insert into t1 values( 137 )
|
||||
master-bin.000001 24298 Query 1 24389 use `test`; insert into t1 values( 136 )
|
||||
master-bin.000001 24389 Query 1 24480 use `test`; insert into t1 values( 135 )
|
||||
master-bin.000001 24480 Query 1 24571 use `test`; insert into t1 values( 134 )
|
||||
master-bin.000001 24571 Query 1 24662 use `test`; insert into t1 values( 133 )
|
||||
master-bin.000001 24662 Query 1 24753 use `test`; insert into t1 values( 132 )
|
||||
master-bin.000001 24753 Query 1 24844 use `test`; insert into t1 values( 131 )
|
||||
master-bin.000001 24844 Query 1 24935 use `test`; insert into t1 values( 130 )
|
||||
master-bin.000001 24935 Query 1 25026 use `test`; insert into t1 values( 129 )
|
||||
master-bin.000001 25026 Query 1 25117 use `test`; insert into t1 values( 128 )
|
||||
master-bin.000001 25117 Query 1 25208 use `test`; insert into t1 values( 127 )
|
||||
master-bin.000001 25208 Query 1 25299 use `test`; insert into t1 values( 126 )
|
||||
master-bin.000001 25299 Query 1 25390 use `test`; insert into t1 values( 125 )
|
||||
master-bin.000001 25390 Query 1 25481 use `test`; insert into t1 values( 124 )
|
||||
master-bin.000001 25481 Query 1 25572 use `test`; insert into t1 values( 123 )
|
||||
master-bin.000001 25572 Query 1 25663 use `test`; insert into t1 values( 122 )
|
||||
master-bin.000001 25663 Query 1 25754 use `test`; insert into t1 values( 121 )
|
||||
master-bin.000001 25754 Query 1 25845 use `test`; insert into t1 values( 120 )
|
||||
master-bin.000001 25845 Query 1 25936 use `test`; insert into t1 values( 119 )
|
||||
master-bin.000001 25936 Query 1 26027 use `test`; insert into t1 values( 118 )
|
||||
master-bin.000001 26027 Query 1 26118 use `test`; insert into t1 values( 117 )
|
||||
master-bin.000001 26118 Query 1 26209 use `test`; insert into t1 values( 116 )
|
||||
master-bin.000001 26209 Query 1 26300 use `test`; insert into t1 values( 115 )
|
||||
master-bin.000001 26300 Query 1 26391 use `test`; insert into t1 values( 114 )
|
||||
master-bin.000001 26391 Query 1 26482 use `test`; insert into t1 values( 113 )
|
||||
master-bin.000001 26482 Query 1 26573 use `test`; insert into t1 values( 112 )
|
||||
master-bin.000001 26573 Query 1 26664 use `test`; insert into t1 values( 111 )
|
||||
master-bin.000001 26664 Query 1 26755 use `test`; insert into t1 values( 110 )
|
||||
master-bin.000001 26755 Query 1 26846 use `test`; insert into t1 values( 109 )
|
||||
master-bin.000001 26846 Query 1 26937 use `test`; insert into t1 values( 108 )
|
||||
master-bin.000001 26937 Query 1 27028 use `test`; insert into t1 values( 107 )
|
||||
master-bin.000001 27028 Query 1 27119 use `test`; insert into t1 values( 106 )
|
||||
master-bin.000001 27119 Query 1 27210 use `test`; insert into t1 values( 105 )
|
||||
master-bin.000001 27210 Query 1 27301 use `test`; insert into t1 values( 104 )
|
||||
master-bin.000001 27301 Query 1 27392 use `test`; insert into t1 values( 103 )
|
||||
master-bin.000001 27392 Query 1 27483 use `test`; insert into t1 values( 102 )
|
||||
master-bin.000001 27483 Query 1 27574 use `test`; insert into t1 values( 101 )
|
||||
master-bin.000001 27574 Query 1 27665 use `test`; insert into t1 values( 100 )
|
||||
master-bin.000001 27665 Query 1 27755 use `test`; insert into t1 values( 99 )
|
||||
master-bin.000001 27755 Query 1 27845 use `test`; insert into t1 values( 98 )
|
||||
master-bin.000001 27845 Query 1 27935 use `test`; insert into t1 values( 97 )
|
||||
master-bin.000001 27935 Query 1 28025 use `test`; insert into t1 values( 96 )
|
||||
master-bin.000001 28025 Query 1 28115 use `test`; insert into t1 values( 95 )
|
||||
master-bin.000001 28115 Query 1 28205 use `test`; insert into t1 values( 94 )
|
||||
master-bin.000001 28205 Query 1 28295 use `test`; insert into t1 values( 93 )
|
||||
master-bin.000001 28295 Query 1 28385 use `test`; insert into t1 values( 92 )
|
||||
master-bin.000001 28385 Query 1 28475 use `test`; insert into t1 values( 91 )
|
||||
master-bin.000001 28475 Query 1 28565 use `test`; insert into t1 values( 90 )
|
||||
master-bin.000001 28565 Query 1 28655 use `test`; insert into t1 values( 89 )
|
||||
master-bin.000001 28655 Query 1 28745 use `test`; insert into t1 values( 88 )
|
||||
master-bin.000001 28745 Query 1 28835 use `test`; insert into t1 values( 87 )
|
||||
master-bin.000001 28835 Query 1 28925 use `test`; insert into t1 values( 86 )
|
||||
master-bin.000001 28925 Query 1 29015 use `test`; insert into t1 values( 85 )
|
||||
master-bin.000001 29015 Query 1 29105 use `test`; insert into t1 values( 84 )
|
||||
master-bin.000001 29105 Query 1 29195 use `test`; insert into t1 values( 83 )
|
||||
master-bin.000001 29195 Query 1 29285 use `test`; insert into t1 values( 82 )
|
||||
master-bin.000001 29285 Query 1 29375 use `test`; insert into t1 values( 81 )
|
||||
master-bin.000001 29375 Query 1 29465 use `test`; insert into t1 values( 80 )
|
||||
master-bin.000001 29465 Query 1 29555 use `test`; insert into t1 values( 79 )
|
||||
master-bin.000001 29555 Query 1 29645 use `test`; insert into t1 values( 78 )
|
||||
master-bin.000001 29645 Query 1 29735 use `test`; insert into t1 values( 77 )
|
||||
master-bin.000001 29735 Query 1 29825 use `test`; insert into t1 values( 76 )
|
||||
master-bin.000001 29825 Query 1 29915 use `test`; insert into t1 values( 75 )
|
||||
master-bin.000001 29915 Query 1 30005 use `test`; insert into t1 values( 74 )
|
||||
master-bin.000001 30005 Query 1 30095 use `test`; insert into t1 values( 73 )
|
||||
master-bin.000001 30095 Query 1 30185 use `test`; insert into t1 values( 72 )
|
||||
master-bin.000001 30185 Query 1 30275 use `test`; insert into t1 values( 71 )
|
||||
master-bin.000001 30275 Query 1 30365 use `test`; insert into t1 values( 70 )
|
||||
master-bin.000001 30365 Query 1 30455 use `test`; insert into t1 values( 69 )
|
||||
master-bin.000001 30455 Query 1 30545 use `test`; insert into t1 values( 68 )
|
||||
master-bin.000001 30545 Query 1 30635 use `test`; insert into t1 values( 67 )
|
||||
master-bin.000001 30635 Query 1 30725 use `test`; insert into t1 values( 66 )
|
||||
master-bin.000001 30725 Query 1 30815 use `test`; insert into t1 values( 65 )
|
||||
master-bin.000001 30815 Query 1 30905 use `test`; insert into t1 values( 64 )
|
||||
master-bin.000001 30905 Query 1 30995 use `test`; insert into t1 values( 63 )
|
||||
master-bin.000001 30995 Query 1 31085 use `test`; insert into t1 values( 62 )
|
||||
master-bin.000001 31085 Query 1 31175 use `test`; insert into t1 values( 61 )
|
||||
master-bin.000001 31175 Query 1 31265 use `test`; insert into t1 values( 60 )
|
||||
master-bin.000001 31265 Query 1 31355 use `test`; insert into t1 values( 59 )
|
||||
master-bin.000001 31355 Query 1 31445 use `test`; insert into t1 values( 58 )
|
||||
master-bin.000001 31445 Query 1 31535 use `test`; insert into t1 values( 57 )
|
||||
master-bin.000001 31535 Query 1 31625 use `test`; insert into t1 values( 56 )
|
||||
master-bin.000001 31625 Query 1 31715 use `test`; insert into t1 values( 55 )
|
||||
master-bin.000001 31715 Query 1 31805 use `test`; insert into t1 values( 54 )
|
||||
master-bin.000001 31805 Query 1 31895 use `test`; insert into t1 values( 53 )
|
||||
master-bin.000001 31895 Query 1 31985 use `test`; insert into t1 values( 52 )
|
||||
master-bin.000001 31985 Query 1 32075 use `test`; insert into t1 values( 51 )
|
||||
master-bin.000001 32075 Query 1 32165 use `test`; insert into t1 values( 50 )
|
||||
master-bin.000001 32165 Query 1 32255 use `test`; insert into t1 values( 49 )
|
||||
master-bin.000001 32255 Query 1 32345 use `test`; insert into t1 values( 48 )
|
||||
master-bin.000001 32345 Query 1 32435 use `test`; insert into t1 values( 47 )
|
||||
master-bin.000001 32435 Query 1 32525 use `test`; insert into t1 values( 46 )
|
||||
master-bin.000001 32525 Query 1 32615 use `test`; insert into t1 values( 45 )
|
||||
master-bin.000001 32615 Query 1 32705 use `test`; insert into t1 values( 44 )
|
||||
master-bin.000001 32705 Query 1 32795 use `test`; insert into t1 values( 43 )
|
||||
master-bin.000001 32795 Query 1 32885 use `test`; insert into t1 values( 42 )
|
||||
master-bin.000001 32885 Query 1 32975 use `test`; insert into t1 values( 41 )
|
||||
master-bin.000001 32975 Query 1 33065 use `test`; insert into t1 values( 40 )
|
||||
master-bin.000001 33065 Query 1 33155 use `test`; insert into t1 values( 39 )
|
||||
master-bin.000001 33155 Query 1 33245 use `test`; insert into t1 values( 38 )
|
||||
master-bin.000001 33245 Query 1 33335 use `test`; insert into t1 values( 37 )
|
||||
master-bin.000001 33335 Query 1 33425 use `test`; insert into t1 values( 36 )
|
||||
master-bin.000001 33425 Query 1 33515 use `test`; insert into t1 values( 35 )
|
||||
master-bin.000001 33515 Query 1 33605 use `test`; insert into t1 values( 34 )
|
||||
master-bin.000001 33605 Query 1 33695 use `test`; insert into t1 values( 33 )
|
||||
master-bin.000001 33695 Query 1 33785 use `test`; insert into t1 values( 32 )
|
||||
master-bin.000001 33785 Query 1 33875 use `test`; insert into t1 values( 31 )
|
||||
master-bin.000001 33875 Query 1 33965 use `test`; insert into t1 values( 30 )
|
||||
master-bin.000001 33965 Query 1 34055 use `test`; insert into t1 values( 29 )
|
||||
master-bin.000001 34055 Query 1 34145 use `test`; insert into t1 values( 28 )
|
||||
master-bin.000001 34145 Query 1 34235 use `test`; insert into t1 values( 27 )
|
||||
master-bin.000001 34235 Query 1 34325 use `test`; insert into t1 values( 26 )
|
||||
master-bin.000001 34325 Query 1 34415 use `test`; insert into t1 values( 25 )
|
||||
master-bin.000001 34415 Query 1 34505 use `test`; insert into t1 values( 24 )
|
||||
master-bin.000001 34505 Query 1 34595 use `test`; insert into t1 values( 23 )
|
||||
master-bin.000001 34595 Query 1 34685 use `test`; insert into t1 values( 22 )
|
||||
master-bin.000001 34685 Query 1 34775 use `test`; insert into t1 values( 21 )
|
||||
master-bin.000001 34775 Query 1 34865 use `test`; insert into t1 values( 20 )
|
||||
master-bin.000001 34865 Query 1 34955 use `test`; insert into t1 values( 19 )
|
||||
master-bin.000001 34955 Query 1 35045 use `test`; insert into t1 values( 18 )
|
||||
master-bin.000001 35045 Query 1 35135 use `test`; insert into t1 values( 17 )
|
||||
master-bin.000001 35135 Query 1 35225 use `test`; insert into t1 values( 16 )
|
||||
master-bin.000001 35225 Query 1 35315 use `test`; insert into t1 values( 15 )
|
||||
master-bin.000001 35315 Query 1 35405 use `test`; insert into t1 values( 14 )
|
||||
master-bin.000001 35405 Query 1 35495 use `test`; insert into t1 values( 13 )
|
||||
master-bin.000001 35495 Query 1 35585 use `test`; insert into t1 values( 12 )
|
||||
master-bin.000001 35585 Query 1 35675 use `test`; insert into t1 values( 11 )
|
||||
master-bin.000001 35675 Query 1 35765 use `test`; insert into t1 values( 10 )
|
||||
master-bin.000001 35765 Query 1 35854 use `test`; insert into t1 values( 9 )
|
||||
master-bin.000001 35854 Query 1 35943 use `test`; insert into t1 values( 8 )
|
||||
master-bin.000001 35943 Query 1 36032 use `test`; insert into t1 values( 7 )
|
||||
master-bin.000001 36032 Query 1 36121 use `test`; insert into t1 values( 6 )
|
||||
master-bin.000001 36121 Query 1 36210 use `test`; insert into t1 values( 5 )
|
||||
master-bin.000001 36210 Query 1 36299 use `test`; insert into t1 values( 4 )
|
||||
master-bin.000001 36299 Query 1 36388 use `test`; insert into t1 values( 3 )
|
||||
master-bin.000001 36388 Query 1 36477 use `test`; insert into t1 values( 2 )
|
||||
master-bin.000001 36477 Query 1 36566 use `test`; insert into t1 values( 1 )
|
||||
master-bin.000001 36566 Xid 1 36593 COMMIT /* XID */
|
||||
master-bin.000001 36593 Rotate 1 36637 master-bin.000002;pos=4
|
||||
master-bin.000001 4 Format_desc 1 107 Server version, Binlog ver: 4
|
||||
master-bin.000001 107 Query 1 207 use `test`; create table t1 (a int) engine=innodb
|
||||
master-bin.000001 207 Query 1 275 BEGIN
|
||||
master-bin.000001 275 Query 1 366 use `test`; insert into t1 values( 400 )
|
||||
master-bin.000001 366 Query 1 457 use `test`; insert into t1 values( 399 )
|
||||
master-bin.000001 457 Query 1 548 use `test`; insert into t1 values( 398 )
|
||||
master-bin.000001 548 Query 1 639 use `test`; insert into t1 values( 397 )
|
||||
master-bin.000001 639 Query 1 730 use `test`; insert into t1 values( 396 )
|
||||
master-bin.000001 730 Query 1 821 use `test`; insert into t1 values( 395 )
|
||||
master-bin.000001 821 Query 1 912 use `test`; insert into t1 values( 394 )
|
||||
master-bin.000001 912 Query 1 1003 use `test`; insert into t1 values( 393 )
|
||||
master-bin.000001 1003 Query 1 1094 use `test`; insert into t1 values( 392 )
|
||||
master-bin.000001 1094 Query 1 1185 use `test`; insert into t1 values( 391 )
|
||||
master-bin.000001 1185 Query 1 1276 use `test`; insert into t1 values( 390 )
|
||||
master-bin.000001 1276 Query 1 1367 use `test`; insert into t1 values( 389 )
|
||||
master-bin.000001 1367 Query 1 1458 use `test`; insert into t1 values( 388 )
|
||||
master-bin.000001 1458 Query 1 1549 use `test`; insert into t1 values( 387 )
|
||||
master-bin.000001 1549 Query 1 1640 use `test`; insert into t1 values( 386 )
|
||||
master-bin.000001 1640 Query 1 1731 use `test`; insert into t1 values( 385 )
|
||||
master-bin.000001 1731 Query 1 1822 use `test`; insert into t1 values( 384 )
|
||||
master-bin.000001 1822 Query 1 1913 use `test`; insert into t1 values( 383 )
|
||||
master-bin.000001 1913 Query 1 2004 use `test`; insert into t1 values( 382 )
|
||||
master-bin.000001 2004 Query 1 2095 use `test`; insert into t1 values( 381 )
|
||||
master-bin.000001 2095 Query 1 2186 use `test`; insert into t1 values( 380 )
|
||||
master-bin.000001 2186 Query 1 2277 use `test`; insert into t1 values( 379 )
|
||||
master-bin.000001 2277 Query 1 2368 use `test`; insert into t1 values( 378 )
|
||||
master-bin.000001 2368 Query 1 2459 use `test`; insert into t1 values( 377 )
|
||||
master-bin.000001 2459 Query 1 2550 use `test`; insert into t1 values( 376 )
|
||||
master-bin.000001 2550 Query 1 2641 use `test`; insert into t1 values( 375 )
|
||||
master-bin.000001 2641 Query 1 2732 use `test`; insert into t1 values( 374 )
|
||||
master-bin.000001 2732 Query 1 2823 use `test`; insert into t1 values( 373 )
|
||||
master-bin.000001 2823 Query 1 2914 use `test`; insert into t1 values( 372 )
|
||||
master-bin.000001 2914 Query 1 3005 use `test`; insert into t1 values( 371 )
|
||||
master-bin.000001 3005 Query 1 3096 use `test`; insert into t1 values( 370 )
|
||||
master-bin.000001 3096 Query 1 3187 use `test`; insert into t1 values( 369 )
|
||||
master-bin.000001 3187 Query 1 3278 use `test`; insert into t1 values( 368 )
|
||||
master-bin.000001 3278 Query 1 3369 use `test`; insert into t1 values( 367 )
|
||||
master-bin.000001 3369 Query 1 3460 use `test`; insert into t1 values( 366 )
|
||||
master-bin.000001 3460 Query 1 3551 use `test`; insert into t1 values( 365 )
|
||||
master-bin.000001 3551 Query 1 3642 use `test`; insert into t1 values( 364 )
|
||||
master-bin.000001 3642 Query 1 3733 use `test`; insert into t1 values( 363 )
|
||||
master-bin.000001 3733 Query 1 3824 use `test`; insert into t1 values( 362 )
|
||||
master-bin.000001 3824 Query 1 3915 use `test`; insert into t1 values( 361 )
|
||||
master-bin.000001 3915 Query 1 4006 use `test`; insert into t1 values( 360 )
|
||||
master-bin.000001 4006 Query 1 4097 use `test`; insert into t1 values( 359 )
|
||||
master-bin.000001 4097 Query 1 4188 use `test`; insert into t1 values( 358 )
|
||||
master-bin.000001 4188 Query 1 4279 use `test`; insert into t1 values( 357 )
|
||||
master-bin.000001 4279 Query 1 4370 use `test`; insert into t1 values( 356 )
|
||||
master-bin.000001 4370 Query 1 4461 use `test`; insert into t1 values( 355 )
|
||||
master-bin.000001 4461 Query 1 4552 use `test`; insert into t1 values( 354 )
|
||||
master-bin.000001 4552 Query 1 4643 use `test`; insert into t1 values( 353 )
|
||||
master-bin.000001 4643 Query 1 4734 use `test`; insert into t1 values( 352 )
|
||||
master-bin.000001 4734 Query 1 4825 use `test`; insert into t1 values( 351 )
|
||||
master-bin.000001 4825 Query 1 4916 use `test`; insert into t1 values( 350 )
|
||||
master-bin.000001 4916 Query 1 5007 use `test`; insert into t1 values( 349 )
|
||||
master-bin.000001 5007 Query 1 5098 use `test`; insert into t1 values( 348 )
|
||||
master-bin.000001 5098 Query 1 5189 use `test`; insert into t1 values( 347 )
|
||||
master-bin.000001 5189 Query 1 5280 use `test`; insert into t1 values( 346 )
|
||||
master-bin.000001 5280 Query 1 5371 use `test`; insert into t1 values( 345 )
|
||||
master-bin.000001 5371 Query 1 5462 use `test`; insert into t1 values( 344 )
|
||||
master-bin.000001 5462 Query 1 5553 use `test`; insert into t1 values( 343 )
|
||||
master-bin.000001 5553 Query 1 5644 use `test`; insert into t1 values( 342 )
|
||||
master-bin.000001 5644 Query 1 5735 use `test`; insert into t1 values( 341 )
|
||||
master-bin.000001 5735 Query 1 5826 use `test`; insert into t1 values( 340 )
|
||||
master-bin.000001 5826 Query 1 5917 use `test`; insert into t1 values( 339 )
|
||||
master-bin.000001 5917 Query 1 6008 use `test`; insert into t1 values( 338 )
|
||||
master-bin.000001 6008 Query 1 6099 use `test`; insert into t1 values( 337 )
|
||||
master-bin.000001 6099 Query 1 6190 use `test`; insert into t1 values( 336 )
|
||||
master-bin.000001 6190 Query 1 6281 use `test`; insert into t1 values( 335 )
|
||||
master-bin.000001 6281 Query 1 6372 use `test`; insert into t1 values( 334 )
|
||||
master-bin.000001 6372 Query 1 6463 use `test`; insert into t1 values( 333 )
|
||||
master-bin.000001 6463 Query 1 6554 use `test`; insert into t1 values( 332 )
|
||||
master-bin.000001 6554 Query 1 6645 use `test`; insert into t1 values( 331 )
|
||||
master-bin.000001 6645 Query 1 6736 use `test`; insert into t1 values( 330 )
|
||||
master-bin.000001 6736 Query 1 6827 use `test`; insert into t1 values( 329 )
|
||||
master-bin.000001 6827 Query 1 6918 use `test`; insert into t1 values( 328 )
|
||||
master-bin.000001 6918 Query 1 7009 use `test`; insert into t1 values( 327 )
|
||||
master-bin.000001 7009 Query 1 7100 use `test`; insert into t1 values( 326 )
|
||||
master-bin.000001 7100 Query 1 7191 use `test`; insert into t1 values( 325 )
|
||||
master-bin.000001 7191 Query 1 7282 use `test`; insert into t1 values( 324 )
|
||||
master-bin.000001 7282 Query 1 7373 use `test`; insert into t1 values( 323 )
|
||||
master-bin.000001 7373 Query 1 7464 use `test`; insert into t1 values( 322 )
|
||||
master-bin.000001 7464 Query 1 7555 use `test`; insert into t1 values( 321 )
|
||||
master-bin.000001 7555 Query 1 7646 use `test`; insert into t1 values( 320 )
|
||||
master-bin.000001 7646 Query 1 7737 use `test`; insert into t1 values( 319 )
|
||||
master-bin.000001 7737 Query 1 7828 use `test`; insert into t1 values( 318 )
|
||||
master-bin.000001 7828 Query 1 7919 use `test`; insert into t1 values( 317 )
|
||||
master-bin.000001 7919 Query 1 8010 use `test`; insert into t1 values( 316 )
|
||||
master-bin.000001 8010 Query 1 8101 use `test`; insert into t1 values( 315 )
|
||||
master-bin.000001 8101 Query 1 8192 use `test`; insert into t1 values( 314 )
|
||||
master-bin.000001 8192 Query 1 8283 use `test`; insert into t1 values( 313 )
|
||||
master-bin.000001 8283 Query 1 8374 use `test`; insert into t1 values( 312 )
|
||||
master-bin.000001 8374 Query 1 8465 use `test`; insert into t1 values( 311 )
|
||||
master-bin.000001 8465 Query 1 8556 use `test`; insert into t1 values( 310 )
|
||||
master-bin.000001 8556 Query 1 8647 use `test`; insert into t1 values( 309 )
|
||||
master-bin.000001 8647 Query 1 8738 use `test`; insert into t1 values( 308 )
|
||||
master-bin.000001 8738 Query 1 8829 use `test`; insert into t1 values( 307 )
|
||||
master-bin.000001 8829 Query 1 8920 use `test`; insert into t1 values( 306 )
|
||||
master-bin.000001 8920 Query 1 9011 use `test`; insert into t1 values( 305 )
|
||||
master-bin.000001 9011 Query 1 9102 use `test`; insert into t1 values( 304 )
|
||||
master-bin.000001 9102 Query 1 9193 use `test`; insert into t1 values( 303 )
|
||||
master-bin.000001 9193 Query 1 9284 use `test`; insert into t1 values( 302 )
|
||||
master-bin.000001 9284 Query 1 9375 use `test`; insert into t1 values( 301 )
|
||||
master-bin.000001 9375 Query 1 9466 use `test`; insert into t1 values( 300 )
|
||||
master-bin.000001 9466 Query 1 9557 use `test`; insert into t1 values( 299 )
|
||||
master-bin.000001 9557 Query 1 9648 use `test`; insert into t1 values( 298 )
|
||||
master-bin.000001 9648 Query 1 9739 use `test`; insert into t1 values( 297 )
|
||||
master-bin.000001 9739 Query 1 9830 use `test`; insert into t1 values( 296 )
|
||||
master-bin.000001 9830 Query 1 9921 use `test`; insert into t1 values( 295 )
|
||||
master-bin.000001 9921 Query 1 10012 use `test`; insert into t1 values( 294 )
|
||||
master-bin.000001 10012 Query 1 10103 use `test`; insert into t1 values( 293 )
|
||||
master-bin.000001 10103 Query 1 10194 use `test`; insert into t1 values( 292 )
|
||||
master-bin.000001 10194 Query 1 10285 use `test`; insert into t1 values( 291 )
|
||||
master-bin.000001 10285 Query 1 10376 use `test`; insert into t1 values( 290 )
|
||||
master-bin.000001 10376 Query 1 10467 use `test`; insert into t1 values( 289 )
|
||||
master-bin.000001 10467 Query 1 10558 use `test`; insert into t1 values( 288 )
|
||||
master-bin.000001 10558 Query 1 10649 use `test`; insert into t1 values( 287 )
|
||||
master-bin.000001 10649 Query 1 10740 use `test`; insert into t1 values( 286 )
|
||||
master-bin.000001 10740 Query 1 10831 use `test`; insert into t1 values( 285 )
|
||||
master-bin.000001 10831 Query 1 10922 use `test`; insert into t1 values( 284 )
|
||||
master-bin.000001 10922 Query 1 11013 use `test`; insert into t1 values( 283 )
|
||||
master-bin.000001 11013 Query 1 11104 use `test`; insert into t1 values( 282 )
|
||||
master-bin.000001 11104 Query 1 11195 use `test`; insert into t1 values( 281 )
|
||||
master-bin.000001 11195 Query 1 11286 use `test`; insert into t1 values( 280 )
|
||||
master-bin.000001 11286 Query 1 11377 use `test`; insert into t1 values( 279 )
|
||||
master-bin.000001 11377 Query 1 11468 use `test`; insert into t1 values( 278 )
|
||||
master-bin.000001 11468 Query 1 11559 use `test`; insert into t1 values( 277 )
|
||||
master-bin.000001 11559 Query 1 11650 use `test`; insert into t1 values( 276 )
|
||||
master-bin.000001 11650 Query 1 11741 use `test`; insert into t1 values( 275 )
|
||||
master-bin.000001 11741 Query 1 11832 use `test`; insert into t1 values( 274 )
|
||||
master-bin.000001 11832 Query 1 11923 use `test`; insert into t1 values( 273 )
|
||||
master-bin.000001 11923 Query 1 12014 use `test`; insert into t1 values( 272 )
|
||||
master-bin.000001 12014 Query 1 12105 use `test`; insert into t1 values( 271 )
|
||||
master-bin.000001 12105 Query 1 12196 use `test`; insert into t1 values( 270 )
|
||||
master-bin.000001 12196 Query 1 12287 use `test`; insert into t1 values( 269 )
|
||||
master-bin.000001 12287 Query 1 12378 use `test`; insert into t1 values( 268 )
|
||||
master-bin.000001 12378 Query 1 12469 use `test`; insert into t1 values( 267 )
|
||||
master-bin.000001 12469 Query 1 12560 use `test`; insert into t1 values( 266 )
|
||||
master-bin.000001 12560 Query 1 12651 use `test`; insert into t1 values( 265 )
|
||||
master-bin.000001 12651 Query 1 12742 use `test`; insert into t1 values( 264 )
|
||||
master-bin.000001 12742 Query 1 12833 use `test`; insert into t1 values( 263 )
|
||||
master-bin.000001 12833 Query 1 12924 use `test`; insert into t1 values( 262 )
|
||||
master-bin.000001 12924 Query 1 13015 use `test`; insert into t1 values( 261 )
|
||||
master-bin.000001 13015 Query 1 13106 use `test`; insert into t1 values( 260 )
|
||||
master-bin.000001 13106 Query 1 13197 use `test`; insert into t1 values( 259 )
|
||||
master-bin.000001 13197 Query 1 13288 use `test`; insert into t1 values( 258 )
|
||||
master-bin.000001 13288 Query 1 13379 use `test`; insert into t1 values( 257 )
|
||||
master-bin.000001 13379 Query 1 13470 use `test`; insert into t1 values( 256 )
|
||||
master-bin.000001 13470 Query 1 13561 use `test`; insert into t1 values( 255 )
|
||||
master-bin.000001 13561 Query 1 13652 use `test`; insert into t1 values( 254 )
|
||||
master-bin.000001 13652 Query 1 13743 use `test`; insert into t1 values( 253 )
|
||||
master-bin.000001 13743 Query 1 13834 use `test`; insert into t1 values( 252 )
|
||||
master-bin.000001 13834 Query 1 13925 use `test`; insert into t1 values( 251 )
|
||||
master-bin.000001 13925 Query 1 14016 use `test`; insert into t1 values( 250 )
|
||||
master-bin.000001 14016 Query 1 14107 use `test`; insert into t1 values( 249 )
|
||||
master-bin.000001 14107 Query 1 14198 use `test`; insert into t1 values( 248 )
|
||||
master-bin.000001 14198 Query 1 14289 use `test`; insert into t1 values( 247 )
|
||||
master-bin.000001 14289 Query 1 14380 use `test`; insert into t1 values( 246 )
|
||||
master-bin.000001 14380 Query 1 14471 use `test`; insert into t1 values( 245 )
|
||||
master-bin.000001 14471 Query 1 14562 use `test`; insert into t1 values( 244 )
|
||||
master-bin.000001 14562 Query 1 14653 use `test`; insert into t1 values( 243 )
|
||||
master-bin.000001 14653 Query 1 14744 use `test`; insert into t1 values( 242 )
|
||||
master-bin.000001 14744 Query 1 14835 use `test`; insert into t1 values( 241 )
|
||||
master-bin.000001 14835 Query 1 14926 use `test`; insert into t1 values( 240 )
|
||||
master-bin.000001 14926 Query 1 15017 use `test`; insert into t1 values( 239 )
|
||||
master-bin.000001 15017 Query 1 15108 use `test`; insert into t1 values( 238 )
|
||||
master-bin.000001 15108 Query 1 15199 use `test`; insert into t1 values( 237 )
|
||||
master-bin.000001 15199 Query 1 15290 use `test`; insert into t1 values( 236 )
|
||||
master-bin.000001 15290 Query 1 15381 use `test`; insert into t1 values( 235 )
|
||||
master-bin.000001 15381 Query 1 15472 use `test`; insert into t1 values( 234 )
|
||||
master-bin.000001 15472 Query 1 15563 use `test`; insert into t1 values( 233 )
|
||||
master-bin.000001 15563 Query 1 15654 use `test`; insert into t1 values( 232 )
|
||||
master-bin.000001 15654 Query 1 15745 use `test`; insert into t1 values( 231 )
|
||||
master-bin.000001 15745 Query 1 15836 use `test`; insert into t1 values( 230 )
|
||||
master-bin.000001 15836 Query 1 15927 use `test`; insert into t1 values( 229 )
|
||||
master-bin.000001 15927 Query 1 16018 use `test`; insert into t1 values( 228 )
|
||||
master-bin.000001 16018 Query 1 16109 use `test`; insert into t1 values( 227 )
|
||||
master-bin.000001 16109 Query 1 16200 use `test`; insert into t1 values( 226 )
|
||||
master-bin.000001 16200 Query 1 16291 use `test`; insert into t1 values( 225 )
|
||||
master-bin.000001 16291 Query 1 16382 use `test`; insert into t1 values( 224 )
|
||||
master-bin.000001 16382 Query 1 16473 use `test`; insert into t1 values( 223 )
|
||||
master-bin.000001 16473 Query 1 16564 use `test`; insert into t1 values( 222 )
|
||||
master-bin.000001 16564 Query 1 16655 use `test`; insert into t1 values( 221 )
|
||||
master-bin.000001 16655 Query 1 16746 use `test`; insert into t1 values( 220 )
|
||||
master-bin.000001 16746 Query 1 16837 use `test`; insert into t1 values( 219 )
|
||||
master-bin.000001 16837 Query 1 16928 use `test`; insert into t1 values( 218 )
|
||||
master-bin.000001 16928 Query 1 17019 use `test`; insert into t1 values( 217 )
|
||||
master-bin.000001 17019 Query 1 17110 use `test`; insert into t1 values( 216 )
|
||||
master-bin.000001 17110 Query 1 17201 use `test`; insert into t1 values( 215 )
|
||||
master-bin.000001 17201 Query 1 17292 use `test`; insert into t1 values( 214 )
|
||||
master-bin.000001 17292 Query 1 17383 use `test`; insert into t1 values( 213 )
|
||||
master-bin.000001 17383 Query 1 17474 use `test`; insert into t1 values( 212 )
|
||||
master-bin.000001 17474 Query 1 17565 use `test`; insert into t1 values( 211 )
|
||||
master-bin.000001 17565 Query 1 17656 use `test`; insert into t1 values( 210 )
|
||||
master-bin.000001 17656 Query 1 17747 use `test`; insert into t1 values( 209 )
|
||||
master-bin.000001 17747 Query 1 17838 use `test`; insert into t1 values( 208 )
|
||||
master-bin.000001 17838 Query 1 17929 use `test`; insert into t1 values( 207 )
|
||||
master-bin.000001 17929 Query 1 18020 use `test`; insert into t1 values( 206 )
|
||||
master-bin.000001 18020 Query 1 18111 use `test`; insert into t1 values( 205 )
|
||||
master-bin.000001 18111 Query 1 18202 use `test`; insert into t1 values( 204 )
|
||||
master-bin.000001 18202 Query 1 18293 use `test`; insert into t1 values( 203 )
|
||||
master-bin.000001 18293 Query 1 18384 use `test`; insert into t1 values( 202 )
|
||||
master-bin.000001 18384 Query 1 18475 use `test`; insert into t1 values( 201 )
|
||||
master-bin.000001 18475 Query 1 18566 use `test`; insert into t1 values( 200 )
|
||||
master-bin.000001 18566 Query 1 18657 use `test`; insert into t1 values( 199 )
|
||||
master-bin.000001 18657 Query 1 18748 use `test`; insert into t1 values( 198 )
|
||||
master-bin.000001 18748 Query 1 18839 use `test`; insert into t1 values( 197 )
|
||||
master-bin.000001 18839 Query 1 18930 use `test`; insert into t1 values( 196 )
|
||||
master-bin.000001 18930 Query 1 19021 use `test`; insert into t1 values( 195 )
|
||||
master-bin.000001 19021 Query 1 19112 use `test`; insert into t1 values( 194 )
|
||||
master-bin.000001 19112 Query 1 19203 use `test`; insert into t1 values( 193 )
|
||||
master-bin.000001 19203 Query 1 19294 use `test`; insert into t1 values( 192 )
|
||||
master-bin.000001 19294 Query 1 19385 use `test`; insert into t1 values( 191 )
|
||||
master-bin.000001 19385 Query 1 19476 use `test`; insert into t1 values( 190 )
|
||||
master-bin.000001 19476 Query 1 19567 use `test`; insert into t1 values( 189 )
|
||||
master-bin.000001 19567 Query 1 19658 use `test`; insert into t1 values( 188 )
|
||||
master-bin.000001 19658 Query 1 19749 use `test`; insert into t1 values( 187 )
|
||||
master-bin.000001 19749 Query 1 19840 use `test`; insert into t1 values( 186 )
|
||||
master-bin.000001 19840 Query 1 19931 use `test`; insert into t1 values( 185 )
|
||||
master-bin.000001 19931 Query 1 20022 use `test`; insert into t1 values( 184 )
|
||||
master-bin.000001 20022 Query 1 20113 use `test`; insert into t1 values( 183 )
|
||||
master-bin.000001 20113 Query 1 20204 use `test`; insert into t1 values( 182 )
|
||||
master-bin.000001 20204 Query 1 20295 use `test`; insert into t1 values( 181 )
|
||||
master-bin.000001 20295 Query 1 20386 use `test`; insert into t1 values( 180 )
|
||||
master-bin.000001 20386 Query 1 20477 use `test`; insert into t1 values( 179 )
|
||||
master-bin.000001 20477 Query 1 20568 use `test`; insert into t1 values( 178 )
|
||||
master-bin.000001 20568 Query 1 20659 use `test`; insert into t1 values( 177 )
|
||||
master-bin.000001 20659 Query 1 20750 use `test`; insert into t1 values( 176 )
|
||||
master-bin.000001 20750 Query 1 20841 use `test`; insert into t1 values( 175 )
|
||||
master-bin.000001 20841 Query 1 20932 use `test`; insert into t1 values( 174 )
|
||||
master-bin.000001 20932 Query 1 21023 use `test`; insert into t1 values( 173 )
|
||||
master-bin.000001 21023 Query 1 21114 use `test`; insert into t1 values( 172 )
|
||||
master-bin.000001 21114 Query 1 21205 use `test`; insert into t1 values( 171 )
|
||||
master-bin.000001 21205 Query 1 21296 use `test`; insert into t1 values( 170 )
|
||||
master-bin.000001 21296 Query 1 21387 use `test`; insert into t1 values( 169 )
|
||||
master-bin.000001 21387 Query 1 21478 use `test`; insert into t1 values( 168 )
|
||||
master-bin.000001 21478 Query 1 21569 use `test`; insert into t1 values( 167 )
|
||||
master-bin.000001 21569 Query 1 21660 use `test`; insert into t1 values( 166 )
|
||||
master-bin.000001 21660 Query 1 21751 use `test`; insert into t1 values( 165 )
|
||||
master-bin.000001 21751 Query 1 21842 use `test`; insert into t1 values( 164 )
|
||||
master-bin.000001 21842 Query 1 21933 use `test`; insert into t1 values( 163 )
|
||||
master-bin.000001 21933 Query 1 22024 use `test`; insert into t1 values( 162 )
|
||||
master-bin.000001 22024 Query 1 22115 use `test`; insert into t1 values( 161 )
|
||||
master-bin.000001 22115 Query 1 22206 use `test`; insert into t1 values( 160 )
|
||||
master-bin.000001 22206 Query 1 22297 use `test`; insert into t1 values( 159 )
|
||||
master-bin.000001 22297 Query 1 22388 use `test`; insert into t1 values( 158 )
|
||||
master-bin.000001 22388 Query 1 22479 use `test`; insert into t1 values( 157 )
|
||||
master-bin.000001 22479 Query 1 22570 use `test`; insert into t1 values( 156 )
|
||||
master-bin.000001 22570 Query 1 22661 use `test`; insert into t1 values( 155 )
|
||||
master-bin.000001 22661 Query 1 22752 use `test`; insert into t1 values( 154 )
|
||||
master-bin.000001 22752 Query 1 22843 use `test`; insert into t1 values( 153 )
|
||||
master-bin.000001 22843 Query 1 22934 use `test`; insert into t1 values( 152 )
|
||||
master-bin.000001 22934 Query 1 23025 use `test`; insert into t1 values( 151 )
|
||||
master-bin.000001 23025 Query 1 23116 use `test`; insert into t1 values( 150 )
|
||||
master-bin.000001 23116 Query 1 23207 use `test`; insert into t1 values( 149 )
|
||||
master-bin.000001 23207 Query 1 23298 use `test`; insert into t1 values( 148 )
|
||||
master-bin.000001 23298 Query 1 23389 use `test`; insert into t1 values( 147 )
|
||||
master-bin.000001 23389 Query 1 23480 use `test`; insert into t1 values( 146 )
|
||||
master-bin.000001 23480 Query 1 23571 use `test`; insert into t1 values( 145 )
|
||||
master-bin.000001 23571 Query 1 23662 use `test`; insert into t1 values( 144 )
|
||||
master-bin.000001 23662 Query 1 23753 use `test`; insert into t1 values( 143 )
|
||||
master-bin.000001 23753 Query 1 23844 use `test`; insert into t1 values( 142 )
|
||||
master-bin.000001 23844 Query 1 23935 use `test`; insert into t1 values( 141 )
|
||||
master-bin.000001 23935 Query 1 24026 use `test`; insert into t1 values( 140 )
|
||||
master-bin.000001 24026 Query 1 24117 use `test`; insert into t1 values( 139 )
|
||||
master-bin.000001 24117 Query 1 24208 use `test`; insert into t1 values( 138 )
|
||||
master-bin.000001 24208 Query 1 24299 use `test`; insert into t1 values( 137 )
|
||||
master-bin.000001 24299 Query 1 24390 use `test`; insert into t1 values( 136 )
|
||||
master-bin.000001 24390 Query 1 24481 use `test`; insert into t1 values( 135 )
|
||||
master-bin.000001 24481 Query 1 24572 use `test`; insert into t1 values( 134 )
|
||||
master-bin.000001 24572 Query 1 24663 use `test`; insert into t1 values( 133 )
|
||||
master-bin.000001 24663 Query 1 24754 use `test`; insert into t1 values( 132 )
|
||||
master-bin.000001 24754 Query 1 24845 use `test`; insert into t1 values( 131 )
|
||||
master-bin.000001 24845 Query 1 24936 use `test`; insert into t1 values( 130 )
|
||||
master-bin.000001 24936 Query 1 25027 use `test`; insert into t1 values( 129 )
|
||||
master-bin.000001 25027 Query 1 25118 use `test`; insert into t1 values( 128 )
|
||||
master-bin.000001 25118 Query 1 25209 use `test`; insert into t1 values( 127 )
|
||||
master-bin.000001 25209 Query 1 25300 use `test`; insert into t1 values( 126 )
|
||||
master-bin.000001 25300 Query 1 25391 use `test`; insert into t1 values( 125 )
|
||||
master-bin.000001 25391 Query 1 25482 use `test`; insert into t1 values( 124 )
|
||||
master-bin.000001 25482 Query 1 25573 use `test`; insert into t1 values( 123 )
|
||||
master-bin.000001 25573 Query 1 25664 use `test`; insert into t1 values( 122 )
|
||||
master-bin.000001 25664 Query 1 25755 use `test`; insert into t1 values( 121 )
|
||||
master-bin.000001 25755 Query 1 25846 use `test`; insert into t1 values( 120 )
|
||||
master-bin.000001 25846 Query 1 25937 use `test`; insert into t1 values( 119 )
|
||||
master-bin.000001 25937 Query 1 26028 use `test`; insert into t1 values( 118 )
|
||||
master-bin.000001 26028 Query 1 26119 use `test`; insert into t1 values( 117 )
|
||||
master-bin.000001 26119 Query 1 26210 use `test`; insert into t1 values( 116 )
|
||||
master-bin.000001 26210 Query 1 26301 use `test`; insert into t1 values( 115 )
|
||||
master-bin.000001 26301 Query 1 26392 use `test`; insert into t1 values( 114 )
|
||||
master-bin.000001 26392 Query 1 26483 use `test`; insert into t1 values( 113 )
|
||||
master-bin.000001 26483 Query 1 26574 use `test`; insert into t1 values( 112 )
|
||||
master-bin.000001 26574 Query 1 26665 use `test`; insert into t1 values( 111 )
|
||||
master-bin.000001 26665 Query 1 26756 use `test`; insert into t1 values( 110 )
|
||||
master-bin.000001 26756 Query 1 26847 use `test`; insert into t1 values( 109 )
|
||||
master-bin.000001 26847 Query 1 26938 use `test`; insert into t1 values( 108 )
|
||||
master-bin.000001 26938 Query 1 27029 use `test`; insert into t1 values( 107 )
|
||||
master-bin.000001 27029 Query 1 27120 use `test`; insert into t1 values( 106 )
|
||||
master-bin.000001 27120 Query 1 27211 use `test`; insert into t1 values( 105 )
|
||||
master-bin.000001 27211 Query 1 27302 use `test`; insert into t1 values( 104 )
|
||||
master-bin.000001 27302 Query 1 27393 use `test`; insert into t1 values( 103 )
|
||||
master-bin.000001 27393 Query 1 27484 use `test`; insert into t1 values( 102 )
|
||||
master-bin.000001 27484 Query 1 27575 use `test`; insert into t1 values( 101 )
|
||||
master-bin.000001 27575 Query 1 27666 use `test`; insert into t1 values( 100 )
|
||||
master-bin.000001 27666 Query 1 27756 use `test`; insert into t1 values( 99 )
|
||||
master-bin.000001 27756 Query 1 27846 use `test`; insert into t1 values( 98 )
|
||||
master-bin.000001 27846 Query 1 27936 use `test`; insert into t1 values( 97 )
|
||||
master-bin.000001 27936 Query 1 28026 use `test`; insert into t1 values( 96 )
|
||||
master-bin.000001 28026 Query 1 28116 use `test`; insert into t1 values( 95 )
|
||||
master-bin.000001 28116 Query 1 28206 use `test`; insert into t1 values( 94 )
|
||||
master-bin.000001 28206 Query 1 28296 use `test`; insert into t1 values( 93 )
|
||||
master-bin.000001 28296 Query 1 28386 use `test`; insert into t1 values( 92 )
|
||||
master-bin.000001 28386 Query 1 28476 use `test`; insert into t1 values( 91 )
|
||||
master-bin.000001 28476 Query 1 28566 use `test`; insert into t1 values( 90 )
|
||||
master-bin.000001 28566 Query 1 28656 use `test`; insert into t1 values( 89 )
|
||||
master-bin.000001 28656 Query 1 28746 use `test`; insert into t1 values( 88 )
|
||||
master-bin.000001 28746 Query 1 28836 use `test`; insert into t1 values( 87 )
|
||||
master-bin.000001 28836 Query 1 28926 use `test`; insert into t1 values( 86 )
|
||||
master-bin.000001 28926 Query 1 29016 use `test`; insert into t1 values( 85 )
|
||||
master-bin.000001 29016 Query 1 29106 use `test`; insert into t1 values( 84 )
|
||||
master-bin.000001 29106 Query 1 29196 use `test`; insert into t1 values( 83 )
|
||||
master-bin.000001 29196 Query 1 29286 use `test`; insert into t1 values( 82 )
|
||||
master-bin.000001 29286 Query 1 29376 use `test`; insert into t1 values( 81 )
|
||||
master-bin.000001 29376 Query 1 29466 use `test`; insert into t1 values( 80 )
|
||||
master-bin.000001 29466 Query 1 29556 use `test`; insert into t1 values( 79 )
|
||||
master-bin.000001 29556 Query 1 29646 use `test`; insert into t1 values( 78 )
|
||||
master-bin.000001 29646 Query 1 29736 use `test`; insert into t1 values( 77 )
|
||||
master-bin.000001 29736 Query 1 29826 use `test`; insert into t1 values( 76 )
|
||||
master-bin.000001 29826 Query 1 29916 use `test`; insert into t1 values( 75 )
|
||||
master-bin.000001 29916 Query 1 30006 use `test`; insert into t1 values( 74 )
|
||||
master-bin.000001 30006 Query 1 30096 use `test`; insert into t1 values( 73 )
|
||||
master-bin.000001 30096 Query 1 30186 use `test`; insert into t1 values( 72 )
|
||||
master-bin.000001 30186 Query 1 30276 use `test`; insert into t1 values( 71 )
|
||||
master-bin.000001 30276 Query 1 30366 use `test`; insert into t1 values( 70 )
|
||||
master-bin.000001 30366 Query 1 30456 use `test`; insert into t1 values( 69 )
|
||||
master-bin.000001 30456 Query 1 30546 use `test`; insert into t1 values( 68 )
|
||||
master-bin.000001 30546 Query 1 30636 use `test`; insert into t1 values( 67 )
|
||||
master-bin.000001 30636 Query 1 30726 use `test`; insert into t1 values( 66 )
|
||||
master-bin.000001 30726 Query 1 30816 use `test`; insert into t1 values( 65 )
|
||||
master-bin.000001 30816 Query 1 30906 use `test`; insert into t1 values( 64 )
|
||||
master-bin.000001 30906 Query 1 30996 use `test`; insert into t1 values( 63 )
|
||||
master-bin.000001 30996 Query 1 31086 use `test`; insert into t1 values( 62 )
|
||||
master-bin.000001 31086 Query 1 31176 use `test`; insert into t1 values( 61 )
|
||||
master-bin.000001 31176 Query 1 31266 use `test`; insert into t1 values( 60 )
|
||||
master-bin.000001 31266 Query 1 31356 use `test`; insert into t1 values( 59 )
|
||||
master-bin.000001 31356 Query 1 31446 use `test`; insert into t1 values( 58 )
|
||||
master-bin.000001 31446 Query 1 31536 use `test`; insert into t1 values( 57 )
|
||||
master-bin.000001 31536 Query 1 31626 use `test`; insert into t1 values( 56 )
|
||||
master-bin.000001 31626 Query 1 31716 use `test`; insert into t1 values( 55 )
|
||||
master-bin.000001 31716 Query 1 31806 use `test`; insert into t1 values( 54 )
|
||||
master-bin.000001 31806 Query 1 31896 use `test`; insert into t1 values( 53 )
|
||||
master-bin.000001 31896 Query 1 31986 use `test`; insert into t1 values( 52 )
|
||||
master-bin.000001 31986 Query 1 32076 use `test`; insert into t1 values( 51 )
|
||||
master-bin.000001 32076 Query 1 32166 use `test`; insert into t1 values( 50 )
|
||||
master-bin.000001 32166 Query 1 32256 use `test`; insert into t1 values( 49 )
|
||||
master-bin.000001 32256 Query 1 32346 use `test`; insert into t1 values( 48 )
|
||||
master-bin.000001 32346 Query 1 32436 use `test`; insert into t1 values( 47 )
|
||||
master-bin.000001 32436 Query 1 32526 use `test`; insert into t1 values( 46 )
|
||||
master-bin.000001 32526 Query 1 32616 use `test`; insert into t1 values( 45 )
|
||||
master-bin.000001 32616 Query 1 32706 use `test`; insert into t1 values( 44 )
|
||||
master-bin.000001 32706 Query 1 32796 use `test`; insert into t1 values( 43 )
|
||||
master-bin.000001 32796 Query 1 32886 use `test`; insert into t1 values( 42 )
|
||||
master-bin.000001 32886 Query 1 32976 use `test`; insert into t1 values( 41 )
|
||||
master-bin.000001 32976 Query 1 33066 use `test`; insert into t1 values( 40 )
|
||||
master-bin.000001 33066 Query 1 33156 use `test`; insert into t1 values( 39 )
|
||||
master-bin.000001 33156 Query 1 33246 use `test`; insert into t1 values( 38 )
|
||||
master-bin.000001 33246 Query 1 33336 use `test`; insert into t1 values( 37 )
|
||||
master-bin.000001 33336 Query 1 33426 use `test`; insert into t1 values( 36 )
|
||||
master-bin.000001 33426 Query 1 33516 use `test`; insert into t1 values( 35 )
|
||||
master-bin.000001 33516 Query 1 33606 use `test`; insert into t1 values( 34 )
|
||||
master-bin.000001 33606 Query 1 33696 use `test`; insert into t1 values( 33 )
|
||||
master-bin.000001 33696 Query 1 33786 use `test`; insert into t1 values( 32 )
|
||||
master-bin.000001 33786 Query 1 33876 use `test`; insert into t1 values( 31 )
|
||||
master-bin.000001 33876 Query 1 33966 use `test`; insert into t1 values( 30 )
|
||||
master-bin.000001 33966 Query 1 34056 use `test`; insert into t1 values( 29 )
|
||||
master-bin.000001 34056 Query 1 34146 use `test`; insert into t1 values( 28 )
|
||||
master-bin.000001 34146 Query 1 34236 use `test`; insert into t1 values( 27 )
|
||||
master-bin.000001 34236 Query 1 34326 use `test`; insert into t1 values( 26 )
|
||||
master-bin.000001 34326 Query 1 34416 use `test`; insert into t1 values( 25 )
|
||||
master-bin.000001 34416 Query 1 34506 use `test`; insert into t1 values( 24 )
|
||||
master-bin.000001 34506 Query 1 34596 use `test`; insert into t1 values( 23 )
|
||||
master-bin.000001 34596 Query 1 34686 use `test`; insert into t1 values( 22 )
|
||||
master-bin.000001 34686 Query 1 34776 use `test`; insert into t1 values( 21 )
|
||||
master-bin.000001 34776 Query 1 34866 use `test`; insert into t1 values( 20 )
|
||||
master-bin.000001 34866 Query 1 34956 use `test`; insert into t1 values( 19 )
|
||||
master-bin.000001 34956 Query 1 35046 use `test`; insert into t1 values( 18 )
|
||||
master-bin.000001 35046 Query 1 35136 use `test`; insert into t1 values( 17 )
|
||||
master-bin.000001 35136 Query 1 35226 use `test`; insert into t1 values( 16 )
|
||||
master-bin.000001 35226 Query 1 35316 use `test`; insert into t1 values( 15 )
|
||||
master-bin.000001 35316 Query 1 35406 use `test`; insert into t1 values( 14 )
|
||||
master-bin.000001 35406 Query 1 35496 use `test`; insert into t1 values( 13 )
|
||||
master-bin.000001 35496 Query 1 35586 use `test`; insert into t1 values( 12 )
|
||||
master-bin.000001 35586 Query 1 35676 use `test`; insert into t1 values( 11 )
|
||||
master-bin.000001 35676 Query 1 35766 use `test`; insert into t1 values( 10 )
|
||||
master-bin.000001 35766 Query 1 35855 use `test`; insert into t1 values( 9 )
|
||||
master-bin.000001 35855 Query 1 35944 use `test`; insert into t1 values( 8 )
|
||||
master-bin.000001 35944 Query 1 36033 use `test`; insert into t1 values( 7 )
|
||||
master-bin.000001 36033 Query 1 36122 use `test`; insert into t1 values( 6 )
|
||||
master-bin.000001 36122 Query 1 36211 use `test`; insert into t1 values( 5 )
|
||||
master-bin.000001 36211 Query 1 36300 use `test`; insert into t1 values( 4 )
|
||||
master-bin.000001 36300 Query 1 36389 use `test`; insert into t1 values( 3 )
|
||||
master-bin.000001 36389 Query 1 36478 use `test`; insert into t1 values( 2 )
|
||||
master-bin.000001 36478 Query 1 36567 use `test`; insert into t1 values( 1 )
|
||||
master-bin.000001 36567 Xid 1 36594 COMMIT /* XID */
|
||||
master-bin.000001 36594 Rotate 1 36638 master-bin.000002;pos=4
|
||||
drop table t1;
|
||||
set global binlog_cache_size=@bcs;
|
||||
set session autocommit = @ac;
|
||||
@@ -590,10 +590,10 @@ deallocate prepare stmt;
|
||||
drop table t1;
|
||||
show binlog events from 0;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server version, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 227 use `test`; create table t1 (a bigint unsigned, b bigint(20) unsigned)
|
||||
master-bin.000001 227 Query 1 351 use `test`; insert into t1 values (9999999999999999,14632475938453979136)
|
||||
master-bin.000001 351 Query 1 427 use `test`; drop table t1
|
||||
master-bin.000001 4 Format_desc 1 107 Server version, Binlog ver: 4
|
||||
master-bin.000001 107 Query 1 228 use `test`; create table t1 (a bigint unsigned, b bigint(20) unsigned)
|
||||
master-bin.000001 228 Query 1 352 use `test`; insert into t1 values (9999999999999999,14632475938453979136)
|
||||
master-bin.000001 352 Query 1 428 use `test`; drop table t1
|
||||
reset master;
|
||||
CREATE DATABASE bug39182 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
|
||||
USE bug39182;
|
||||
@@ -764,14 +764,14 @@ drop table if exists t3;
|
||||
create table t3 (a int(11) NOT NULL AUTO_INCREMENT, b text, PRIMARY KEY (a) ) engine=innodb;
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 346
|
||||
master-bin.000001 347
|
||||
insert into t3(b) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
||||
insert into t3(b) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
||||
insert into t3(b) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
||||
insert into t3(b) values ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa');
|
||||
show master status /* must show new binlog index after rotating */;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000002 106
|
||||
master-bin.000002 107
|
||||
drop table t3;
|
||||
#
|
||||
# Bug #45998: database crashes when running "create as select"
|
||||
|
||||
@@ -25,9 +25,22 @@ let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
copy_file $MYSQL_TEST_DIR/std_data/bug33029-slave-relay-bin.000001 $MYSQLD_DATADIR/slave-relay-bin.000001;
|
||||
|
||||
write_file $MYSQLD_DATADIR/slave-relay-bin.index;
|
||||
slave-relay-bin.000001
|
||||
EOF
|
||||
|
||||
# After patch for BUG#12190, the filename used in CHANGE MASTER
|
||||
# RELAY_LOG_FILE will be automatically added the directory of the
|
||||
# relay log before comparison, thus we need to added the directory
|
||||
# part (./ on unix .\ on windows) when faking the relay-log-bin.index.
|
||||
disable_query_log;
|
||||
if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows") = 0`)
|
||||
{
|
||||
eval select './slave-relay-bin.000001\n' into dumpfile '$MYSQLD_DATADIR/slave-relay-bin.index';
|
||||
}
|
||||
|
||||
if (`select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows") != 0`)
|
||||
{
|
||||
eval select '.\\\\slave-relay-bin.000001\n' into dumpfile '$MYSQLD_DATADIR/slave-relay-bin.index';
|
||||
}
|
||||
enable_query_log;
|
||||
|
||||
change master to
|
||||
MASTER_HOST='dummy.localdomain',
|
||||
|
||||
63
mysql-test/suite/binlog/t/binlog_implicit_commit.test
Normal file
63
mysql-test/suite/binlog/t/binlog_implicit_commit.test
Normal file
@@ -0,0 +1,63 @@
|
||||
# The purpose of this test is to test that setting autocommit does a
|
||||
# commit of outstanding transactions and nothing is left pending in
|
||||
# the transaction cache.
|
||||
|
||||
source include/have_log_bin.inc;
|
||||
source include/have_innodb.inc;
|
||||
|
||||
# We need a transactional engine, so let's use InnoDB
|
||||
CREATE TABLE t1 (id INT) ENGINE = InnoDB;
|
||||
|
||||
# Testing SET AUTOCOMMIT
|
||||
SET BINLOG_FORMAT = STATEMENT;
|
||||
|
||||
let $cleanup = COMMIT;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 0;
|
||||
let $statement = SET AUTOCOMMIT = 1;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 1;
|
||||
let $statement = SET AUTOCOMMIT = 1;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 0;
|
||||
let $statement = SET AUTOCOMMIT = 0;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 1;
|
||||
let $statement = SET AUTOCOMMIT = 0;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
SET BINLOG_FORMAT = ROW;
|
||||
let $prepare = SET AUTOCOMMIT = 0;
|
||||
let $statement = SET AUTOCOMMIT = 1;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 1;
|
||||
let $statement = SET AUTOCOMMIT = 1;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 0;
|
||||
let $statement = SET AUTOCOMMIT = 0;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
let $prepare = SET AUTOCOMMIT = 1;
|
||||
let $statement = SET AUTOCOMMIT = 0;
|
||||
source extra/binlog_tests/implicit.test;
|
||||
|
||||
RESET MASTER;
|
||||
SET AUTOCOMMIT = 0;
|
||||
INSERT INTO t1 VALUES (1);
|
||||
source include/show_binlog_events.inc;
|
||||
LOCK TABLES t1 WRITE;
|
||||
source include/show_binlog_events.inc;
|
||||
INSERT INTO t1 VALUES (2);
|
||||
source include/show_binlog_events.inc;
|
||||
UNLOCK TABLES;
|
||||
source include/show_binlog_events.inc;
|
||||
COMMIT;
|
||||
source include/show_binlog_events.inc;
|
||||
|
||||
# Cleaning up
|
||||
DROP TABLE t1;
|
||||
@@ -20,7 +20,7 @@ REPLACE INTO t1 VALUES (4);
|
||||
DROP TABLE t1;
|
||||
FLUSH LOGS;
|
||||
|
||||
exec $MYSQL_BINLOG --start-position=106 $MYSQLD_DATADIR/master-bin.000001 >$MYSQLTEST_VARDIR/tmp/binlog_incident-bug44442.sql;
|
||||
exec $MYSQL_BINLOG --start-position=107 $MYSQLD_DATADIR/master-bin.000001 >$MYSQLTEST_VARDIR/tmp/binlog_incident-bug44442.sql;
|
||||
--disable_query_log
|
||||
eval SELECT cont LIKE '%RELOAD DATABASE; # Shall generate syntax error%' AS `Contain RELOAD DATABASE` FROM (SELECT load_file('$MYSQLTEST_VARDIR/tmp/binlog_incident-bug44442.sql') AS cont) AS tbl;
|
||||
--enable_query_log
|
||||
|
||||
@@ -155,7 +155,8 @@ reset master;
|
||||
UPDATE t2,t1 SET t2.a=t1.a+2;
|
||||
# check
|
||||
select * from t2 /* must be (3,1), (4,4) */;
|
||||
show master status /* there must no UPDATE in binlog */;
|
||||
--echo there must no UPDATE in binlog
|
||||
source include/show_master_status.inc;
|
||||
|
||||
# B. testing multi_update::send_error() execution branch
|
||||
delete from t1;
|
||||
@@ -165,7 +166,8 @@ insert into t2 values (1,2),(3,4),(4,4);
|
||||
reset master;
|
||||
--error ER_DUP_ENTRY
|
||||
UPDATE t2,t1 SET t2.a=t2.b where t2.a=t1.a;
|
||||
show master status /* there must be no UPDATE query event */;
|
||||
--echo there must no UPDATE in binlog
|
||||
source include/show_master_status.inc;
|
||||
|
||||
# cleanup bug#27716
|
||||
drop table t1, t2;
|
||||
|
||||
@@ -51,7 +51,7 @@ reap;
|
||||
let $rows= `select count(*) from t2 /* must be 2 or 0 */`;
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=134 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=135 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval select
|
||||
(@a:=load_file("$MYSQLTEST_VARDIR/tmp/kill_query_calling_sp.binlog"))
|
||||
|
||||
@@ -24,7 +24,7 @@ update t1 set a=2 /* will be "killed" after work has been done */;
|
||||
# for some constants like the offset of the first real event
|
||||
# that is different between severs versions.
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=106 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=107 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval select
|
||||
(@a:=load_file("$MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog"))
|
||||
@@ -52,7 +52,7 @@ load data infile '../../std_data/rpl_loaddata.dat' into table t2 /* will be "kil
|
||||
|
||||
source include/show_binlog_events.inc;
|
||||
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=98 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=107 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval select
|
||||
(@a:=load_file("$MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog"))
|
||||
|
||||
@@ -197,13 +197,13 @@ select * from federated.t1;
|
||||
id name
|
||||
1 this is legitimate
|
||||
alter server s1 options (database 'db_bogus');
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
flush tables;
|
||||
select * from federated.t1;
|
||||
id name
|
||||
1 this is legitimate
|
||||
alter server s1 options (database 'db_bogus');
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
flush tables;
|
||||
select * from federated.t1;
|
||||
id name
|
||||
@@ -214,7 +214,7 @@ select * from federated.t1;
|
||||
id name
|
||||
2 this is bogus
|
||||
drop server if exists 's1';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create server 's1' foreign data wrapper 'mysql' options
|
||||
(HOST '127.0.0.1',
|
||||
DATABASE 'db_legitimate',
|
||||
@@ -223,7 +223,7 @@ PASSWORD '',
|
||||
PORT SLAVE_PORT,
|
||||
SOCKET '',
|
||||
OWNER 'root');
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
drop server 's1';
|
||||
create server 's1' foreign data wrapper 'mysql' options
|
||||
(HOST '127.0.0.1',
|
||||
|
||||
@@ -1251,7 +1251,7 @@ drop trigger trg1_0;
|
||||
create definer=not_ex_user@localhost trigger trg1_0
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_0-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create definer=current_user trigger trg1_1
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_1-yes';
|
||||
@@ -1284,7 +1284,7 @@ GRANT SELECT, INSERT, UPDATE, TRIGGER ON `priv_db`.`t1` TO 'test_yesprivs'@'loca
|
||||
create definer=not_ex_user@localhost trigger trg1_3
|
||||
after UPDATE on t1 for each row
|
||||
set @var1 = 'trig 1_3-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
select current_user;
|
||||
current_user
|
||||
root@localhost
|
||||
|
||||
@@ -1252,7 +1252,7 @@ drop trigger trg1_0;
|
||||
create definer=not_ex_user@localhost trigger trg1_0
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_0-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create definer=current_user trigger trg1_1
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_1-yes';
|
||||
@@ -1285,7 +1285,7 @@ GRANT SELECT, INSERT, UPDATE, TRIGGER ON `priv_db`.`t1` TO 'test_yesprivs'@'loca
|
||||
create definer=not_ex_user@localhost trigger trg1_3
|
||||
after UPDATE on t1 for each row
|
||||
set @var1 = 'trig 1_3-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
select current_user;
|
||||
current_user
|
||||
root@localhost
|
||||
|
||||
@@ -1252,7 +1252,7 @@ drop trigger trg1_0;
|
||||
create definer=not_ex_user@localhost trigger trg1_0
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_0-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create definer=current_user trigger trg1_1
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_1-yes';
|
||||
@@ -1285,7 +1285,7 @@ GRANT SELECT, INSERT, UPDATE, TRIGGER ON `priv_db`.`t1` TO 'test_yesprivs'@'loca
|
||||
create definer=not_ex_user@localhost trigger trg1_3
|
||||
after UPDATE on t1 for each row
|
||||
set @var1 = 'trig 1_3-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
select current_user;
|
||||
current_user
|
||||
root@localhost
|
||||
|
||||
@@ -1251,7 +1251,7 @@ drop trigger trg1_0;
|
||||
create definer=not_ex_user@localhost trigger trg1_0
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_0-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
create definer=current_user trigger trg1_1
|
||||
before INSERT on t1 for each row
|
||||
set new.f1 = 'trig 1_1-yes';
|
||||
@@ -1284,7 +1284,7 @@ GRANT SELECT, INSERT, UPDATE, TRIGGER ON `priv_db`.`t1` TO 'test_yesprivs'@'loca
|
||||
create definer=not_ex_user@localhost trigger trg1_3
|
||||
after UPDATE on t1 for each row
|
||||
set @var1 = 'trig 1_3-yes';
|
||||
ERROR 42000: Access denied; you need the SUPER privilege for this operation
|
||||
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
|
||||
select current_user;
|
||||
current_user
|
||||
root@localhost
|
||||
|
||||
@@ -177,6 +177,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT count(*) "Slave norm" FROM t1;
|
||||
Slave norm 500
|
||||
SELECT count(*) "Slave bykey" FROM t2;
|
||||
|
||||
@@ -44,6 +44,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 0
|
||||
change master to master_host='127.0.0.1',master_user='root',
|
||||
master_password='',master_port=MASTER_PORT;
|
||||
SHOW SLAVE STATUS;
|
||||
@@ -85,6 +87,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 0
|
||||
start slave;
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
@@ -125,6 +129,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
drop table if exists t1;
|
||||
create table t1 (n int, PRIMARY KEY(n));
|
||||
insert into t1 values (10),(45),(90);
|
||||
|
||||
@@ -17,16 +17,15 @@ show grants for x@y;
|
||||
Grants for x@y
|
||||
GRANT USAGE ON *.* TO 'x'@'y'
|
||||
GRANT SELECT ON `d1`.`t` TO 'x'@'y'
|
||||
show binlog events;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server ver: VERSION, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 193 drop database if exists d1
|
||||
master-bin.000001 193 Query 1 272 create database d1
|
||||
master-bin.000001 272 Query 1 370 use `d1`; create table t (s1 int) engine=innodb
|
||||
master-bin.000001 370 Query 1 436 BEGIN
|
||||
master-bin.000001 436 Query 1 521 use `d1`; insert into t values (1)
|
||||
master-bin.000001 521 Xid 1 548 COMMIT /* XID */
|
||||
master-bin.000001 548 Query 1 633 use `d1`; grant select on t to x@y
|
||||
master-bin.000001 # Query # # drop database if exists d1
|
||||
master-bin.000001 # Query # # create database d1
|
||||
master-bin.000001 # Query # # use `d1`; create table t (s1 int) engine=innodb
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `d1`; insert into t values (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # use `d1`; grant select on t to x@y
|
||||
start transaction;
|
||||
insert into t values (2);
|
||||
revoke select on t from x@y;
|
||||
@@ -38,19 +37,18 @@ s1
|
||||
show grants for x@y;
|
||||
Grants for x@y
|
||||
GRANT USAGE ON *.* TO 'x'@'y'
|
||||
show binlog events;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server ver: VERSION, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 193 drop database if exists d1
|
||||
master-bin.000001 193 Query 1 272 create database d1
|
||||
master-bin.000001 272 Query 1 370 use `d1`; create table t (s1 int) engine=innodb
|
||||
master-bin.000001 370 Query 1 436 BEGIN
|
||||
master-bin.000001 436 Query 1 521 use `d1`; insert into t values (1)
|
||||
master-bin.000001 521 Xid 1 548 COMMIT /* XID */
|
||||
master-bin.000001 548 Query 1 633 use `d1`; grant select on t to x@y
|
||||
master-bin.000001 633 Query 1 699 BEGIN
|
||||
master-bin.000001 699 Query 1 784 use `d1`; insert into t values (2)
|
||||
master-bin.000001 784 Xid 1 811 COMMIT /* XID */
|
||||
master-bin.000001 811 Query 1 899 use `d1`; revoke select on t from x@y
|
||||
master-bin.000001 # Query # # drop database if exists d1
|
||||
master-bin.000001 # Query # # create database d1
|
||||
master-bin.000001 # Query # # use `d1`; create table t (s1 int) engine=innodb
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `d1`; insert into t values (1)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # use `d1`; grant select on t to x@y
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Query # # use `d1`; insert into t values (2)
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # use `d1`; revoke select on t from x@y
|
||||
drop user x@y;
|
||||
drop database d1;
|
||||
|
||||
@@ -43,4 +43,6 @@ Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno #
|
||||
Last_SQL_Error Failed during slave thread initialization
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 0
|
||||
SET GLOBAL debug="";
|
||||
|
||||
@@ -50,6 +50,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
change master to master_user='root';
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
@@ -90,9 +92,28 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave;
|
||||
select * from t1;
|
||||
n
|
||||
1
|
||||
2
|
||||
drop table t1;
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1);
|
||||
flush logs;
|
||||
insert into t1 values (2);
|
||||
include/stop_slave.inc
|
||||
delete from t1 where a=2;
|
||||
CHANGE MASTER TO relay_log_file='slave-relay-bin.000005', relay_log_pos=4;
|
||||
start slave sql_thread;
|
||||
start slave io_thread;
|
||||
set global relay_log_purge=1;
|
||||
drop table t1;
|
||||
|
||||
@@ -89,6 +89,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
*** Test lock wait timeout ***
|
||||
include/stop_slave.inc
|
||||
@@ -151,13 +153,15 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
*** Test lock wait timeout and purged relay logs ***
|
||||
SET @my_max_relay_log_size= @@global.max_relay_log_size;
|
||||
SET global max_relay_log_size=0;
|
||||
include/stop_slave.inc
|
||||
DELETE FROM t2;
|
||||
CHANGE MASTER TO MASTER_LOG_POS=440;
|
||||
CHANGE MASTER TO MASTER_LOG_POS=441;
|
||||
BEGIN;
|
||||
SELECT * FROM t1 FOR UPDATE;
|
||||
a
|
||||
@@ -218,6 +222,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
*** Clean up ***
|
||||
DROP TABLE t1,t2,t3;
|
||||
|
||||
16
mysql-test/suite/rpl/r/rpl_empty_master_host.result
Normal file
16
mysql-test/suite/rpl/r/rpl_empty_master_host.result
Normal file
@@ -0,0 +1,16 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
STOP SLAVE;
|
||||
Master_Host = '127.0.0.1' (expected '127.0.0.1')
|
||||
CHANGE MASTER TO MASTER_HOST="";
|
||||
ERROR HY000: Incorrect arguments to MASTER_HOST
|
||||
Master_Host = '127.0.0.1' (expected '127.0.0.1')
|
||||
CHANGE MASTER TO MASTER_HOST="foo";
|
||||
Master_Host = 'foo' (expected 'foo')
|
||||
CHANGE MASTER TO MASTER_HOST="127.0.0.1";
|
||||
Master_Host = '127.0.0.1' (expected '127.0.0.1')
|
||||
START SLAVE;
|
||||
@@ -93,6 +93,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
@@ -160,6 +162,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t3 ***
|
||||
@@ -222,6 +226,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t4 ***
|
||||
@@ -284,6 +290,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t5 ***
|
||||
@@ -345,6 +353,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||
*** Drop t6 ***
|
||||
DROP TABLE t6;
|
||||
@@ -404,7 +414,11 @@ STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||
d TIMESTAMP,
|
||||
e INT NOT NULL) ENGINE='InnoDB';
|
||||
e INT NOT NULL,
|
||||
f text not null,
|
||||
g text,
|
||||
h blob not null,
|
||||
i blob) ENGINE='InnoDB';
|
||||
*** Create t9 on Master ***
|
||||
CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||
) ENGINE='InnoDB';
|
||||
@@ -415,47 +429,11 @@ START SLAVE;
|
||||
set @b1 = 'b1b1b1b1';
|
||||
set @b1 = concat(@b1,@b1);
|
||||
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port #
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 1364
|
||||
Last_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 330
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1364
|
||||
Last_SQL_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 330
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
select * from t9;
|
||||
a b c d e f g h i
|
||||
1 b1b1b1b1b1b1b1b1 Kyle 0000-00-00 00:00:00 0 NULL NULL
|
||||
2 b1b1b1b1b1b1b1b1 JOE 0000-00-00 00:00:00 0 NULL NULL
|
||||
3 b1b1b1b1b1b1b1b1 QA 0000-00-00 00:00:00 0 NULL NULL
|
||||
*** Create t10 on slave ***
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
@@ -513,6 +491,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t10 ***
|
||||
@@ -574,6 +554,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t11 ***
|
||||
@@ -824,6 +806,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1060
|
||||
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||
START SLAVE;
|
||||
*** Try to insert in master ****
|
||||
@@ -964,6 +948,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
** DROP table t17 ***
|
||||
|
||||
@@ -93,6 +93,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 size mismatch - master has size 10, test.t2 on slave has size 6. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
@@ -160,6 +162,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 252, test.t3 has type 3
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t3 ***
|
||||
@@ -222,6 +226,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 246, test.t4 has type 3
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t4 ***
|
||||
@@ -284,6 +290,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 5 type mismatch - received type 4, test.t5 has type 246
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t5 ***
|
||||
@@ -345,6 +353,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 3 type mismatch - received type 16, test.t6 has type 3
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=3;
|
||||
*** Drop t6 ***
|
||||
DROP TABLE t6;
|
||||
@@ -404,7 +414,11 @@ STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||
d TIMESTAMP,
|
||||
e INT NOT NULL) ENGINE='MyISAM';
|
||||
e INT NOT NULL,
|
||||
f text not null,
|
||||
g text,
|
||||
h blob not null,
|
||||
i blob) ENGINE='MyISAM';
|
||||
*** Create t9 on Master ***
|
||||
CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||
) ENGINE='MyISAM';
|
||||
@@ -415,47 +429,11 @@ START SLAVE;
|
||||
set @b1 = 'b1b1b1b1';
|
||||
set @b1 = concat(@b1,@b1);
|
||||
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port #
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 1364
|
||||
Last_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 330
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1364
|
||||
Last_SQL_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 330
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
select * from t9;
|
||||
a b c d e f g h i
|
||||
1 b1b1b1b1b1b1b1b1 Kyle 0000-00-00 00:00:00 0 NULL NULL
|
||||
2 b1b1b1b1b1b1b1b1 JOE 0000-00-00 00:00:00 0 NULL NULL
|
||||
3 b1b1b1b1b1b1b1b1 QA 0000-00-00 00:00:00 0 NULL NULL
|
||||
*** Create t10 on slave ***
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
@@ -513,6 +491,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 254, test.t10 has type 5
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t10 ***
|
||||
@@ -574,6 +554,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 15, test.t11 has type 252
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
*** Drop t11 ***
|
||||
@@ -824,6 +806,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1060
|
||||
Last_SQL_Error Error 'Duplicate column name 'c6'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c6 INT AFTER c5'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||
START SLAVE;
|
||||
*** Try to insert in master ****
|
||||
@@ -964,6 +948,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 8, test.t17 has type 2
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
** DROP table t17 ***
|
||||
|
||||
@@ -133,6 +133,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
|
||||
***** Testing Altering table def scenario *****
|
||||
@@ -509,6 +511,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
****************************************
|
||||
* columns in master at middle of table *
|
||||
@@ -583,6 +587,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 5, test.t10 has type 254
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -658,6 +664,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 252, test.t11 has type 15
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -809,6 +817,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1091
|
||||
Last_SQL_Error Error 'Can't DROP 'c7'; check that column/key exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -895,6 +905,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1054
|
||||
Last_SQL_Error Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -981,6 +993,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1072
|
||||
Last_SQL_Error Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -1274,6 +1288,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
|
||||
***** Testing Altering table def scenario *****
|
||||
@@ -1650,6 +1666,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
****************************************
|
||||
* columns in master at middle of table *
|
||||
@@ -1724,6 +1742,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 5, test.t10 has type 254
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -1799,6 +1819,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 252, test.t11 has type 15
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -1950,6 +1972,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1091
|
||||
Last_SQL_Error Error 'Can't DROP 'c7'; check that column/key exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -2036,6 +2060,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1054
|
||||
Last_SQL_Error Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -2122,6 +2148,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1072
|
||||
Last_SQL_Error Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -2415,6 +2443,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
|
||||
***** Testing Altering table def scenario *****
|
||||
@@ -2791,6 +2821,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
****************************************
|
||||
* columns in master at middle of table *
|
||||
@@ -2865,6 +2897,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 5, test.t10 has type 254
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -2940,6 +2974,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 252, test.t11 has type 15
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -3091,6 +3127,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1091
|
||||
Last_SQL_Error Error 'Can't DROP 'c7'; check that column/key exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -3177,6 +3215,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1054
|
||||
Last_SQL_Error Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -3263,6 +3303,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1072
|
||||
Last_SQL_Error Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
|
||||
@@ -133,6 +133,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
|
||||
***** Testing Altering table def scenario *****
|
||||
@@ -509,6 +511,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
****************************************
|
||||
* columns in master at middle of table *
|
||||
@@ -583,6 +587,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 5, test.t10 has type 254
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -658,6 +664,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 252, test.t11 has type 15
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -809,6 +817,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1091
|
||||
Last_SQL_Error Error 'Can't DROP 'c7'; check that column/key exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -895,6 +905,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1054
|
||||
Last_SQL_Error Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -981,6 +993,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1072
|
||||
Last_SQL_Error Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -1274,6 +1288,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
|
||||
***** Testing Altering table def scenario *****
|
||||
@@ -1650,6 +1666,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
****************************************
|
||||
* columns in master at middle of table *
|
||||
@@ -1724,6 +1742,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 5, test.t10 has type 254
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -1799,6 +1819,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 252, test.t11 has type 15
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -1950,6 +1972,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1091
|
||||
Last_SQL_Error Error 'Can't DROP 'c7'; check that column/key exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -2036,6 +2060,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1054
|
||||
Last_SQL_Error Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -2122,6 +2148,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1072
|
||||
Last_SQL_Error Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -2415,6 +2443,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
|
||||
***** Testing Altering table def scenario *****
|
||||
@@ -2791,6 +2821,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
****************************************
|
||||
* columns in master at middle of table *
|
||||
@@ -2865,6 +2897,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 5, test.t10 has type 254
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -2940,6 +2974,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 2 type mismatch - received type 252, test.t11 has type 15
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
|
||||
@@ -3091,6 +3127,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1091
|
||||
Last_SQL_Error Error 'Can't DROP 'c7'; check that column/key exists' on query. Default database: 'test'. Query: 'ALTER TABLE t14 DROP COLUMN c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -3177,6 +3215,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1054
|
||||
Last_SQL_Error Error 'Unknown column 'c7' in 't15'' on query. Default database: 'test'. Query: 'ALTER TABLE t15 ADD COLUMN c2 DECIMAL(8,2) AFTER c7'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
@@ -3263,6 +3303,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1072
|
||||
Last_SQL_Error Error 'Key column 'c6' doesn't exist in table' on query. Default database: 'test'. Query: 'CREATE INDEX part_of_c6 ON t16 (c6)'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ relay_log MYSQLD_DATADIR/relay-log
|
||||
relay_log_index
|
||||
relay_log_info_file relay-log.info
|
||||
relay_log_purge ON
|
||||
relay_log_recovery OFF
|
||||
relay_log_space_limit 0
|
||||
stop slave;
|
||||
change master to master_host='127.0.0.1',master_user='root',
|
||||
@@ -59,3 +60,5 @@ Last_IO_Errno #
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 2
|
||||
|
||||
@@ -80,3 +80,5 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
|
||||
145
mysql-test/suite/rpl/r/rpl_heartbeat.result
Normal file
145
mysql-test/suite/rpl/r/rpl_heartbeat.result
Normal file
@@ -0,0 +1,145 @@
|
||||
reset master;
|
||||
set @restore_slave_net_timeout= @@global.slave_net_timeout;
|
||||
set @@global.slave_net_timeout= 10;
|
||||
Warnings:
|
||||
Warning 1624 The currect value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 5.000
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294968;
|
||||
ERROR HY000: The requested value for the heartbeat period is negative or exceeds the maximum 4294967 seconds
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 5.000
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.0009999;
|
||||
Warnings:
|
||||
Warning 1624 The requested value for the heartbeat period is less than 1 msec. The period is reset to zero which means no heartbeats will be sending
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 0.000
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294967;
|
||||
Warnings:
|
||||
Warning 1624 The requested value for the heartbeat period exceeds the value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 4294967.000
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.001;
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 0.001
|
||||
reset slave;
|
||||
set @@global.slave_net_timeout= 5;
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 5.001;
|
||||
Warnings:
|
||||
Warning 1624 The requested value for the heartbeat period exceeds the value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 5.001
|
||||
reset slave;
|
||||
set @@global.slave_net_timeout= 5;
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4;
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 4.000
|
||||
set @@global.slave_net_timeout= 3 /* must be a warning */;
|
||||
Warnings:
|
||||
Warning 1624 The currect value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
reset slave;
|
||||
drop table if exists t1;
|
||||
set @@global.slave_net_timeout= 10;
|
||||
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.5;
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 0.500
|
||||
start slave;
|
||||
create table t1 (f1 int);
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 280
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running Yes
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 280
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 280
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running Yes
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 280
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
show status like 'Slave_heartbeat_period';;
|
||||
Variable_name Slave_heartbeat_period
|
||||
Value 0.500
|
||||
A heartbeat has been received by the slave
|
||||
drop table t1;
|
||||
set @@global.slave_net_timeout= @restore_slave_net_timeout;
|
||||
End of tests
|
||||
55
mysql-test/suite/rpl/r/rpl_heartbeat_2slaves.result
Normal file
55
mysql-test/suite/rpl/r/rpl_heartbeat_2slaves.result
Normal file
@@ -0,0 +1,55 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
|
||||
*** Preparing ***
|
||||
[on slave]
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1, MASTER_LOG_FILE='MASTER_BINLOG';
|
||||
include/start_slave.inc
|
||||
[on slave1]
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=1, MASTER_LOG_FILE='MASTER_BINLOG';
|
||||
include/start_slave.inc
|
||||
|
||||
*** 2 slaves ***
|
||||
Slave has received heartbeat event
|
||||
Slave1 has received heartbeat event
|
||||
Slave has received more heartbeats than Slave1 (1 means 'yes'): 1
|
||||
|
||||
*** Master->data->Slave1->heartbeat->Slave: ***
|
||||
[on slave1]
|
||||
RESET MASTER;
|
||||
[on slave]
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=SLAVE1_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.2, MASTER_LOG_FILE='SLAVE1_BINLOG';
|
||||
include/start_slave.inc
|
||||
Slave has received heartbeat event
|
||||
[on master]
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10), c LONGTEXT);
|
||||
INSERT INTO t1 VALUES (1, 'on master', '');
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t1
|
||||
[on slave1]
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t1
|
||||
[on slave]
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
[on master]
|
||||
creating updates on master and send to slave1 during 5 second
|
||||
[on slave]
|
||||
Slave has received heartbeats (1 means 'yes'): 1
|
||||
|
||||
*** Clean up ***
|
||||
DROP TABLE t1;
|
||||
|
||||
End of 6.0 test
|
||||
299
mysql-test/suite/rpl/r/rpl_heartbeat_basic.result
Normal file
299
mysql-test/suite/rpl/r/rpl_heartbeat_basic.result
Normal file
@@ -0,0 +1,299 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
|
||||
*** Preparing ***
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
SET @restore_slave_net_timeout=@@global.slave_net_timeout;
|
||||
RESET MASTER;
|
||||
SET @restore_slave_net_timeout=@@global.slave_net_timeout;
|
||||
SET @restore_event_scheduler=@@global.event_scheduler;
|
||||
|
||||
*** Default value ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root';
|
||||
slave_net_timeout/slave_heartbeat_timeout=2.0000
|
||||
RESET SLAVE;
|
||||
|
||||
*** Reset slave affect ***
|
||||
SET @@global.slave_net_timeout=30;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=5;
|
||||
RESET SLAVE;
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 15.000
|
||||
|
||||
*** Default value if slave_net_timeout changed ***
|
||||
SET @@global.slave_net_timeout=50;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root';
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 25.000
|
||||
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
|
||||
RESET SLAVE;
|
||||
|
||||
*** Warning if updated slave_net_timeout < slave_heartbeat_timeout ***
|
||||
SET @@global.slave_net_timeout=FLOOR(SLAVE_HEARTBEAT_TIMEOUT)-1;
|
||||
Warnings:
|
||||
Warning 1624 The currect value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
|
||||
RESET SLAVE;
|
||||
|
||||
*** Warning if updated slave_heartbeat_timeout > slave_net_timeout ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=SLAVE_NET_TIMEOUT;
|
||||
Warnings:
|
||||
Warning 1624 The requested value for the heartbeat period exceeds the value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
RESET SLAVE;
|
||||
|
||||
*** CHANGE MASTER statement only updates slave_heartbeat_period ***
|
||||
SET @@global.slave_net_timeout=20;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=5;
|
||||
SHOW VARIABLES LIKE 'slave_net_timeout';
|
||||
Variable_name Value
|
||||
slave_net_timeout 20
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 5.000
|
||||
SET @@global.slave_net_timeout=2*@@global.slave_net_timeout;
|
||||
SHOW VARIABLES LIKE 'slave_net_timeout';
|
||||
Variable_name Value
|
||||
slave_net_timeout 40
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 5.000
|
||||
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
|
||||
RESET SLAVE;
|
||||
|
||||
*** Update slave_net_timeout on master ***
|
||||
SET @@global.slave_net_timeout=500;
|
||||
SET @@global.slave_net_timeout=200;
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root';
|
||||
include/start_slave.inc
|
||||
SHOW VARIABLES LIKE 'slave_net_timeout';
|
||||
Variable_name Value
|
||||
slave_net_timeout 200
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 100.000
|
||||
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
|
||||
|
||||
*** Start/stop slave ***
|
||||
SET @@global.slave_net_timeout=100;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=20;
|
||||
include/start_slave.inc
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 20.000
|
||||
include/stop_slave.inc
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 20.000
|
||||
|
||||
*** Reload slave ***
|
||||
SET @@global.slave_net_timeout=50;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=30;
|
||||
Reload slave
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 30.000
|
||||
SET @restore_slave_net_timeout=@@global.slave_net_timeout;
|
||||
|
||||
*** Disable heartbeat ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0;
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 0.000
|
||||
SHOW STATUS LIKE 'slave_received_heartbeats';
|
||||
Variable_name Value
|
||||
Slave_received_heartbeats 0
|
||||
include/start_slave.inc
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 0.000
|
||||
SHOW STATUS LIKE 'slave_received_heartbeats';
|
||||
Variable_name Value
|
||||
Slave_received_heartbeats 0
|
||||
include/stop_slave.inc
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 0.000
|
||||
SHOW STATUS LIKE 'slave_received_heartbeats';
|
||||
Variable_name Value
|
||||
Slave_received_heartbeats 0
|
||||
RESET SLAVE;
|
||||
SELECT SLAVE_HEARTBEAT_TIMEOUT = 0 AS Result;
|
||||
Result
|
||||
0
|
||||
|
||||
*** Min slave_heartbeat_timeout ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.001;
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 0.001
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.0009;
|
||||
Warnings:
|
||||
Warning 1624 The requested value for the heartbeat period is less than 1 msec. The period is reset to zero which means no heartbeats will be sending
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 0.000
|
||||
RESET SLAVE;
|
||||
|
||||
*** Max slave_heartbeat_timeout ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=4294967;
|
||||
Warnings:
|
||||
Warning 1624 The requested value for the heartbeat period exceeds the value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
|
||||
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
|
||||
Variable_name Value
|
||||
Slave_heartbeat_period 4294967.000
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=4294968;
|
||||
ERROR HY000: The requested value for the heartbeat period is negative or exceeds the maximum 4294967 seconds
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=8589935;
|
||||
ERROR HY000: The requested value for the heartbeat period is negative or exceeds the maximum 4294967 seconds
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=4294967296;
|
||||
ERROR HY000: The requested value for the heartbeat period is negative or exceeds the maximum 4294967 seconds
|
||||
RESET SLAVE;
|
||||
|
||||
*** Misc incorrect values ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD='-1';
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''-1'' at line 1
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD='123abc';
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''123abc'' at line 1
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD='';
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '''' at line 1
|
||||
RESET SLAVE;
|
||||
|
||||
*** Running slave ***
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1;
|
||||
include/start_slave.inc
|
||||
Heartbeat event received
|
||||
|
||||
*** Stopped slave ***
|
||||
include/stop_slave.inc
|
||||
Number of received heartbeat events while slave stopped: 0
|
||||
|
||||
*** Started slave ***
|
||||
include/start_slave.inc
|
||||
Heartbeat event received
|
||||
|
||||
*** Stopped IO thread ***
|
||||
STOP SLAVE IO_THREAD;
|
||||
Number of received heartbeat events while io thread stopped: 0
|
||||
|
||||
*** Started IO thread ***
|
||||
START SLAVE IO_THREAD;
|
||||
Heartbeat event received
|
||||
|
||||
*** Stopped SQL thread ***
|
||||
STOP SLAVE SQL_THREAD;
|
||||
Heartbeat events are received while sql thread stopped (1 means 'yes'): 1
|
||||
|
||||
*** Started SQL thread ***
|
||||
START SLAVE SQL_THREAD;
|
||||
Heartbeat event received
|
||||
|
||||
*** Stopped SQL thread by error ***
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10), c LONGTEXT);
|
||||
INSERT INTO t1 VALUES (1, 'on slave', NULL);
|
||||
INSERT INTO t1 VALUES (1, 'on master', NULL);
|
||||
Heartbeat events are received while sql thread stopped (1 means 'yes'): 1
|
||||
include/stop_slave.inc
|
||||
DROP TABLE t1;
|
||||
|
||||
*** Master send to slave ***
|
||||
CREATE EVENT e1
|
||||
ON SCHEDULE EVERY 1 SECOND
|
||||
DO
|
||||
BEGIN
|
||||
UPDATE test.t1 SET a = a + 1 WHERE a < 10;
|
||||
END|
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=5;
|
||||
include/start_slave.inc
|
||||
SET @@global.event_scheduler=1;
|
||||
Number of received heartbeat events: 0
|
||||
DELETE FROM t1;
|
||||
DROP EVENT e1;
|
||||
|
||||
*** Flush logs on slave ***
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t1;
|
||||
RESET MASTER;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.5;
|
||||
include/start_slave.inc
|
||||
Heartbeat events are received while rotation of relay logs (1 means 'yes'): 1
|
||||
|
||||
*** Compressed protocol ***
|
||||
SET @@global.slave_compressed_protocol=1;
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
SET @@global.slave_compressed_protocol=1;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1;
|
||||
include/start_slave.inc
|
||||
Heartbeat event received
|
||||
SET @@global.slave_compressed_protocol=0;
|
||||
SET @@global.slave_compressed_protocol=0;
|
||||
|
||||
*** Reset master ***
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1;
|
||||
include/start_slave.inc
|
||||
RESET MASTER;
|
||||
Heartbeat events are received after reset of master (1 means 'yes'): 1
|
||||
|
||||
*** Reload master ***
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1;
|
||||
include/start_slave.inc
|
||||
Heartbeat event received
|
||||
Reload master
|
||||
Heartbeat event received
|
||||
|
||||
*** Circular replication ***
|
||||
RESET MASTER;
|
||||
CREATE TABLE t1 (a INT PRIMARY KEY, b VARCHAR(10));
|
||||
include/stop_slave.inc
|
||||
RESET MASTER;
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=0.1, MASTER_LOG_FILE='MASTER_BINLOG';
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=SLAVE_PORT, MASTER_USER='root', MASTER_HEARTBEAT_PERIOD=1, MASTER_LOG_FILE='SLAVE_BINLOG';
|
||||
include/start_slave.inc
|
||||
INSERT INTO t1 VALUES(1, 'on master');
|
||||
include/start_slave.inc
|
||||
INSERT INTO t1 VALUES(2, 'on slave');
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 on master
|
||||
2 on slave
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 on master
|
||||
2 on slave
|
||||
Heartbeat event received on master
|
||||
Heartbeat event received on slave
|
||||
Slave has received more events than master (1 means 'yes'): 1
|
||||
|
||||
*** Clean up ***
|
||||
include/stop_slave.inc
|
||||
DROP TABLE t1;
|
||||
include/stop_slave.inc
|
||||
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
|
||||
|
||||
End of 6.0 test
|
||||
27
mysql-test/suite/rpl/r/rpl_heartbeat_ssl.result
Normal file
27
mysql-test/suite/rpl/r/rpl_heartbeat_ssl.result
Normal file
@@ -0,0 +1,27 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
|
||||
*** Heartbeat over SSL ***
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
CHANGE MASTER TO
|
||||
MASTER_HOST='127.0.0.1',
|
||||
MASTER_PORT=MASTER_PORT,
|
||||
MASTER_USER='root',
|
||||
MASTER_HEARTBEAT_PERIOD=0.1,
|
||||
MASTER_LOG_FILE='MASTER_BINLOG',
|
||||
MASTER_SSL=1,
|
||||
MASTER_SSL_CA='MYSQL_TEST_DIR/std_data/cacert.pem',
|
||||
MASTER_SSL_CERT='MYSQL_TEST_DIR/std_data/client-cert.pem',
|
||||
MASTER_SSL_KEY='MYSQL_TEST_DIR/std_data/client-key.pem';
|
||||
include/start_slave.inc
|
||||
Master_SSL_Allowed: Yes
|
||||
Heartbeat event has received
|
||||
|
||||
*** Clean up ***
|
||||
|
||||
End of 6.0 test
|
||||
@@ -64,6 +64,8 @@ Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 1590
|
||||
Last_SQL_Error The incident LOST_EVENTS occured on the master. Message: <none>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||
START SLAVE;
|
||||
SELECT * FROM t1;
|
||||
@@ -111,4 +113,6 @@ Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
DROP TABLE t1;
|
||||
|
||||
@@ -33,7 +33,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 1105
|
||||
Last_Error Error 'master may suffer from http://bugs.mysql.com/bug.php?id=24432 so slave stops; check error log on slave for more info' on query. Default database: 'test'. Query: 'INSERT INTO t1(b) VALUES(1),(1),(2) ON DUPLICATE KEY UPDATE t1.b=10'
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 246
|
||||
Exec_Master_Log_Pos 247
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -50,6 +50,8 @@ Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 1105
|
||||
Last_SQL_Error Error 'master may suffer from http://bugs.mysql.com/bug.php?id=24432 so slave stops; check error log on slave for more info' on query. Default database: 'test'. Query: 'INSERT INTO t1(b) VALUES(1),(1),(2) ON DUPLICATE KEY UPDATE t1.b=10'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT * FROM t1;
|
||||
a b
|
||||
stop slave;
|
||||
@@ -120,7 +122,7 @@ FROM t2
|
||||
ON DUPLICATE KEY UPDATE
|
||||
t1.field_3 = t2.field_c'
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 1278
|
||||
Exec_Master_Log_Pos 1279
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -141,6 +143,8 @@ SELECT t2.field_a, t2.field_b, t2.field_c
|
||||
FROM t2
|
||||
ON DUPLICATE KEY UPDATE
|
||||
t1.field_3 = t2.field_c'
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT * FROM t1;
|
||||
id field_1 field_2 field_3
|
||||
drop table t1, t2;
|
||||
|
||||
@@ -34,9 +34,47 @@ insert into t1 values(1,10);
|
||||
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||||
set global sql_slave_skip_counter=1;
|
||||
start slave;
|
||||
show slave status;
|
||||
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error
|
||||
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 2009 # # master-bin.000001 Yes Yes # 0 0 2009 # None 0 No # No 0 0
|
||||
show slave status;;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 2010
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running Yes
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 2010
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
set sql_log_bin=0;
|
||||
delete from t1;
|
||||
set sql_log_bin=1;
|
||||
@@ -44,9 +82,47 @@ load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||||
stop slave;
|
||||
change master to master_user='test';
|
||||
change master to master_user='root';
|
||||
show slave status;
|
||||
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error
|
||||
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 2044 # # master-bin.000001 No No # 0 0 2044 # None 0 No # No 0 0
|
||||
show slave status;;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 2045
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running No
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 2045
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
set global sql_slave_skip_counter=1;
|
||||
start slave;
|
||||
set sql_log_bin=0;
|
||||
@@ -55,9 +131,47 @@ set sql_log_bin=1;
|
||||
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||||
stop slave;
|
||||
reset slave;
|
||||
show slave status;
|
||||
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master Master_SSL_Verify_Server_Cert Last_IO_Errno Last_IO_Error Last_SQL_Errno Last_SQL_Error
|
||||
# 127.0.0.1 root MASTER_PORT 1 4 # # No No # 0 0 0 # None 0 No # No 0 0
|
||||
show slave status;;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File
|
||||
Read_Master_Log_Pos 4
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File
|
||||
Slave_IO_Running No
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table #
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 0
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
reset master;
|
||||
create table t2 (day date,id int(9),category enum('a','b','c'),name varchar(60),
|
||||
unique(day)) engine=MyISAM;
|
||||
|
||||
@@ -13,7 +13,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 290
|
||||
Read_Master_Log_Pos 291
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
@@ -28,7 +28,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 290
|
||||
Exec_Master_Log_Pos 291
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -45,6 +45,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
LOAD DATA INFILE '../../std_data/rpl_loaddata.dat' INTO TABLE t1;
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
@@ -53,7 +55,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 556
|
||||
Read_Master_Log_Pos 557
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
@@ -68,7 +70,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 1593
|
||||
Last_Error Fatal error: Not enough memory
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 325
|
||||
Exec_Master_Log_Pos 326
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -85,6 +87,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1593
|
||||
Last_SQL_Error Fatal error: Not enough memory
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||
START SLAVE;
|
||||
DROP TABLE t1;
|
||||
|
||||
@@ -49,6 +49,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave;
|
||||
include/stop_slave.inc
|
||||
SHOW SLAVE STATUS;
|
||||
@@ -90,6 +92,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
|
||||
202
mysql-test/suite/rpl/r/rpl_not_null_innodb.result
Normal file
202
mysql-test/suite/rpl/r/rpl_not_null_innodb.result
Normal file
@@ -0,0 +1,202 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
SET SQL_LOG_BIN= 0;
|
||||
CREATE TABLE t1(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t4(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
CREATE TABLE t1(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT, `b` DATE DEFAULT '0000-00-00',
|
||||
`c` INT DEFAULT 500,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t4(`a` INT, `b` DATE DEFAULT '0000-00-00',
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
************* EXECUTION WITH INSERTS *************
|
||||
INSERT INTO t1(a,b,c) VALUES (1, null, 1);
|
||||
INSERT INTO t1(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
INSERT INTO t1(a,b) VALUES (3, null);
|
||||
INSERT INTO t1(a,c) VALUES (4, 4);
|
||||
INSERT INTO t1(a) VALUES (5);
|
||||
INSERT INTO t2(a,b) VALUES (1, null);
|
||||
INSERT INTO t2(a,b) VALUES (2,'1111-11-11');
|
||||
INSERT INTO t2(a) VALUES (3);
|
||||
INSERT INTO t3(a,b) VALUES (1, null);
|
||||
INSERT INTO t3(a,b) VALUES (2,'1111-11-11');
|
||||
INSERT INTO t3(a) VALUES (3);
|
||||
INSERT INTO t4(a,b,c) VALUES (1, null, 1);
|
||||
INSERT INTO t4(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
INSERT INTO t4(a,b) VALUES (3, null);
|
||||
INSERT INTO t4(a,c) VALUES (4, 4);
|
||||
INSERT INTO t4(a) VALUES (5);
|
||||
************* SHOWING THE RESULT SETS WITH INSERTS *************
|
||||
TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
Comparing tables master:test.t1 and slave:test.t1
|
||||
Comparing tables master:test.t2 and slave:test.t2
|
||||
TABLES t2 and t3 must be different.
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 1111-11-11
|
||||
3 NULL
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b c
|
||||
1 NULL 500
|
||||
2 1111-11-11 500
|
||||
3 NULL 500
|
||||
SELECT * FROM t4 ORDER BY a;
|
||||
a b c
|
||||
1 NULL 1
|
||||
2 1111-11-11 2
|
||||
3 NULL NULL
|
||||
4 NULL 4
|
||||
5 NULL NULL
|
||||
SELECT * FROM t4 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 1111-11-11
|
||||
3 NULL
|
||||
4 NULL
|
||||
5 NULL
|
||||
************* EXECUTION WITH UPDATES and REPLACES *************
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1(a,b,c) VALUES (1,'1111-11-11', 1);
|
||||
REPLACE INTO t1(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
UPDATE t1 set b= NULL, c= 300 where a= 1;
|
||||
REPLACE INTO t1(a,b,c) VALUES (2, NULL, 300);
|
||||
************* SHOWING THE RESULT SETS WITH UPDATES and REPLACES *************
|
||||
TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
Comparing tables master:test.t1 and slave:test.t1
|
||||
************* CLEANING *************
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
DROP TABLE t4;
|
||||
SET SQL_LOG_BIN= 0;
|
||||
CREATE TABLE t1 (`a` INT, `b` BIT DEFAULT NULL, `c` BIT DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)) ENGINE= Innodb;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
CREATE TABLE t1 (`a` INT, `b` BIT DEFAULT b'01', `c` BIT DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)) ENGINE= Innodb;
|
||||
************* EXECUTION WITH INSERTS *************
|
||||
INSERT INTO t1(a,b,c) VALUES (1, null, b'01');
|
||||
INSERT INTO t1(a,b,c) VALUES (2,b'00', b'01');
|
||||
INSERT INTO t1(a,b) VALUES (3, null);
|
||||
INSERT INTO t1(a,c) VALUES (4, b'01');
|
||||
INSERT INTO t1(a) VALUES (5);
|
||||
************* SHOWING THE RESULT SETS WITH INSERTS *************
|
||||
TABLES t1 and t2 must be different.
|
||||
SELECT a,b+0,c+0 FROM t1 ORDER BY a;
|
||||
a b+0 c+0
|
||||
1 NULL 1
|
||||
2 0 1
|
||||
3 NULL NULL
|
||||
4 NULL 1
|
||||
5 NULL NULL
|
||||
SELECT a,b+0,c+0 FROM t1 ORDER BY a;
|
||||
a b+0 c+0
|
||||
1 NULL 1
|
||||
2 0 1
|
||||
3 NULL NULL
|
||||
4 NULL 1
|
||||
5 NULL NULL
|
||||
************* EXECUTION WITH UPDATES and REPLACES *************
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1(a,b,c) VALUES (1,b'00', b'01');
|
||||
REPLACE INTO t1(a,b,c) VALUES (2,b'00',b'01');
|
||||
UPDATE t1 set b= NULL, c= b'00' where a= 1;
|
||||
REPLACE INTO t1(a,b,c) VALUES (2, NULL, b'00');
|
||||
************* SHOWING THE RESULT SETS WITH UPDATES and REPLACES *************
|
||||
TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
Comparing tables master:test.t1 and slave:test.t1
|
||||
DROP TABLE t1;
|
||||
################################################################################
|
||||
# NULL ---> NOT NULL (STRICT MODE)
|
||||
# UNCOMMENT THIS AFTER FIXING BUG#43992
|
||||
################################################################################
|
||||
################################################################################
|
||||
# NULL ---> NOT NULL (NON-STRICT MODE)
|
||||
################################################################################
|
||||
SET SQL_LOG_BIN= 0;
|
||||
CREATE TABLE t1(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
CREATE TABLE t1(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT NOT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT DEFAULT 500,
|
||||
PRIMARY KEY(`a`)) ENGINE=Innodb DEFAULT CHARSET=LATIN1;
|
||||
************* EXECUTION WITH INSERTS *************
|
||||
INSERT INTO t1(a) VALUES (1);
|
||||
INSERT INTO t1(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t1(a, b) VALUES (3, 1);
|
||||
INSERT INTO t2(a) VALUES (1);
|
||||
INSERT INTO t2(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t2(a, b) VALUES (3, 1);
|
||||
INSERT INTO t3(a) VALUES (1);
|
||||
INSERT INTO t3(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t3(a, b) VALUES (3, 1);
|
||||
INSERT INTO t3(a, b) VALUES (4, 1);
|
||||
REPLACE INTO t3(a, b) VALUES (5, null);
|
||||
REPLACE INTO t3(a, b) VALUES (3, null);
|
||||
UPDATE t3 SET b = NULL where a = 4;
|
||||
************* SHOWING THE RESULT SETS *************
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 NULL
|
||||
3 1
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b c
|
||||
1 0 0
|
||||
2 0 0
|
||||
3 1 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 NULL
|
||||
3 1
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b c
|
||||
1 0 NULL
|
||||
2 0 NULL
|
||||
3 1 NULL
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 NULL
|
||||
3 NULL
|
||||
4 NULL
|
||||
5 NULL
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b c
|
||||
1 0 500
|
||||
2 0 500
|
||||
3 0 500
|
||||
4 0 500
|
||||
5 0 500
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
202
mysql-test/suite/rpl/r/rpl_not_null_myisam.result
Normal file
202
mysql-test/suite/rpl/r/rpl_not_null_myisam.result
Normal file
@@ -0,0 +1,202 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
SET SQL_LOG_BIN= 0;
|
||||
CREATE TABLE t1(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t4(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
CREATE TABLE t1(`a` INT, `b` DATE DEFAULT NULL,
|
||||
`c` INT DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT, `b` DATE DEFAULT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT, `b` DATE DEFAULT '0000-00-00',
|
||||
`c` INT DEFAULT 500,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t4(`a` INT, `b` DATE DEFAULT '0000-00-00',
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
************* EXECUTION WITH INSERTS *************
|
||||
INSERT INTO t1(a,b,c) VALUES (1, null, 1);
|
||||
INSERT INTO t1(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
INSERT INTO t1(a,b) VALUES (3, null);
|
||||
INSERT INTO t1(a,c) VALUES (4, 4);
|
||||
INSERT INTO t1(a) VALUES (5);
|
||||
INSERT INTO t2(a,b) VALUES (1, null);
|
||||
INSERT INTO t2(a,b) VALUES (2,'1111-11-11');
|
||||
INSERT INTO t2(a) VALUES (3);
|
||||
INSERT INTO t3(a,b) VALUES (1, null);
|
||||
INSERT INTO t3(a,b) VALUES (2,'1111-11-11');
|
||||
INSERT INTO t3(a) VALUES (3);
|
||||
INSERT INTO t4(a,b,c) VALUES (1, null, 1);
|
||||
INSERT INTO t4(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
INSERT INTO t4(a,b) VALUES (3, null);
|
||||
INSERT INTO t4(a,c) VALUES (4, 4);
|
||||
INSERT INTO t4(a) VALUES (5);
|
||||
************* SHOWING THE RESULT SETS WITH INSERTS *************
|
||||
TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
Comparing tables master:test.t1 and slave:test.t1
|
||||
Comparing tables master:test.t2 and slave:test.t2
|
||||
TABLES t2 and t3 must be different.
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 1111-11-11
|
||||
3 NULL
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b c
|
||||
1 NULL 500
|
||||
2 1111-11-11 500
|
||||
3 NULL 500
|
||||
SELECT * FROM t4 ORDER BY a;
|
||||
a b c
|
||||
1 NULL 1
|
||||
2 1111-11-11 2
|
||||
3 NULL NULL
|
||||
4 NULL 4
|
||||
5 NULL NULL
|
||||
SELECT * FROM t4 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 1111-11-11
|
||||
3 NULL
|
||||
4 NULL
|
||||
5 NULL
|
||||
************* EXECUTION WITH UPDATES and REPLACES *************
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1(a,b,c) VALUES (1,'1111-11-11', 1);
|
||||
REPLACE INTO t1(a,b,c) VALUES (2,'1111-11-11', 2);
|
||||
UPDATE t1 set b= NULL, c= 300 where a= 1;
|
||||
REPLACE INTO t1(a,b,c) VALUES (2, NULL, 300);
|
||||
************* SHOWING THE RESULT SETS WITH UPDATES and REPLACES *************
|
||||
TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
Comparing tables master:test.t1 and slave:test.t1
|
||||
************* CLEANING *************
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
DROP TABLE t4;
|
||||
SET SQL_LOG_BIN= 0;
|
||||
CREATE TABLE t1 (`a` INT, `b` BIT DEFAULT NULL, `c` BIT DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)) ENGINE= MyISAM;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
CREATE TABLE t1 (`a` INT, `b` BIT DEFAULT b'01', `c` BIT DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)) ENGINE= MyISAM;
|
||||
************* EXECUTION WITH INSERTS *************
|
||||
INSERT INTO t1(a,b,c) VALUES (1, null, b'01');
|
||||
INSERT INTO t1(a,b,c) VALUES (2,b'00', b'01');
|
||||
INSERT INTO t1(a,b) VALUES (3, null);
|
||||
INSERT INTO t1(a,c) VALUES (4, b'01');
|
||||
INSERT INTO t1(a) VALUES (5);
|
||||
************* SHOWING THE RESULT SETS WITH INSERTS *************
|
||||
TABLES t1 and t2 must be different.
|
||||
SELECT a,b+0,c+0 FROM t1 ORDER BY a;
|
||||
a b+0 c+0
|
||||
1 NULL 1
|
||||
2 0 1
|
||||
3 NULL NULL
|
||||
4 NULL 1
|
||||
5 NULL NULL
|
||||
SELECT a,b+0,c+0 FROM t1 ORDER BY a;
|
||||
a b+0 c+0
|
||||
1 NULL 1
|
||||
2 0 1
|
||||
3 NULL NULL
|
||||
4 NULL 1
|
||||
5 NULL NULL
|
||||
************* EXECUTION WITH UPDATES and REPLACES *************
|
||||
DELETE FROM t1;
|
||||
INSERT INTO t1(a,b,c) VALUES (1,b'00', b'01');
|
||||
REPLACE INTO t1(a,b,c) VALUES (2,b'00',b'01');
|
||||
UPDATE t1 set b= NULL, c= b'00' where a= 1;
|
||||
REPLACE INTO t1(a,b,c) VALUES (2, NULL, b'00');
|
||||
************* SHOWING THE RESULT SETS WITH UPDATES and REPLACES *************
|
||||
TABLES t1 and t2 must be equal otherwise an error will be thrown.
|
||||
Comparing tables master:test.t1 and slave:test.t1
|
||||
DROP TABLE t1;
|
||||
################################################################################
|
||||
# NULL ---> NOT NULL (STRICT MODE)
|
||||
# UNCOMMENT THIS AFTER FIXING BUG#43992
|
||||
################################################################################
|
||||
################################################################################
|
||||
# NULL ---> NOT NULL (NON-STRICT MODE)
|
||||
################################################################################
|
||||
SET SQL_LOG_BIN= 0;
|
||||
CREATE TABLE t1(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT NOT NULL, `b` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
SET SQL_LOG_BIN= 1;
|
||||
CREATE TABLE t1(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT NOT NULL,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t2(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
CREATE TABLE t3(`a` INT NOT NULL, `b` INT NOT NULL,
|
||||
`c` INT DEFAULT 500,
|
||||
PRIMARY KEY(`a`)) ENGINE=MyISAM DEFAULT CHARSET=LATIN1;
|
||||
************* EXECUTION WITH INSERTS *************
|
||||
INSERT INTO t1(a) VALUES (1);
|
||||
INSERT INTO t1(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t1(a, b) VALUES (3, 1);
|
||||
INSERT INTO t2(a) VALUES (1);
|
||||
INSERT INTO t2(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t2(a, b) VALUES (3, 1);
|
||||
INSERT INTO t3(a) VALUES (1);
|
||||
INSERT INTO t3(a, b) VALUES (2, NULL);
|
||||
INSERT INTO t3(a, b) VALUES (3, 1);
|
||||
INSERT INTO t3(a, b) VALUES (4, 1);
|
||||
REPLACE INTO t3(a, b) VALUES (5, null);
|
||||
REPLACE INTO t3(a, b) VALUES (3, null);
|
||||
UPDATE t3 SET b = NULL where a = 4;
|
||||
************* SHOWING THE RESULT SETS *************
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 NULL
|
||||
3 1
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b c
|
||||
1 0 0
|
||||
2 0 0
|
||||
3 1 0
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 NULL
|
||||
3 1
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b c
|
||||
1 0 NULL
|
||||
2 0 NULL
|
||||
3 1 NULL
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b
|
||||
1 NULL
|
||||
2 NULL
|
||||
3 NULL
|
||||
4 NULL
|
||||
5 NULL
|
||||
SELECT * FROM t3 ORDER BY a;
|
||||
a b c
|
||||
1 0 500
|
||||
2 0 500
|
||||
3 0 500
|
||||
4 0 500
|
||||
5 0 500
|
||||
DROP TABLE t1;
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t3;
|
||||
@@ -31,7 +31,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 594
|
||||
Read_Master_Log_Pos 595
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
@@ -46,7 +46,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 594
|
||||
Exec_Master_Log_Pos 595
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -63,6 +63,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SHOW BINLOG EVENTS;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Format_desc 2 # Server ver: VERSION, Binlog ver: 4
|
||||
|
||||
@@ -65,6 +65,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
create table t1 (ts timestamp);
|
||||
set one_shot time_zone='met';
|
||||
insert into t1 values('2005-08-12 00:00:00');
|
||||
|
||||
@@ -53,6 +53,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
select * from t1;
|
||||
s
|
||||
Could not break slave
|
||||
@@ -132,6 +134,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
select * from t2;
|
||||
m
|
||||
34
|
||||
@@ -196,6 +200,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
lock tables t3 read;
|
||||
select count(*) from t3 where n >= 4;
|
||||
count(*)
|
||||
|
||||
@@ -58,12 +58,12 @@ DELETE FROM t1 WHERE a = 0;
|
||||
UPDATE t1 SET a=99 WHERE a = 0;
|
||||
SHOW BINLOG EVENTS;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server ver: SERVER_VERSION, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 192 use `test`; CREATE TABLE t1 (a INT)
|
||||
master-bin.000001 192 Query 1 260 BEGIN
|
||||
master-bin.000001 260 Table_map 1 301 table_id: # (test.t1)
|
||||
master-bin.000001 301 Write_rows 1 340 table_id: # flags: STMT_END_F
|
||||
master-bin.000001 340 Query 1 409 COMMIT
|
||||
master-bin.000001 4 Format_desc 1 107 Server ver: SERVER_VERSION, Binlog ver: 4
|
||||
master-bin.000001 107 Query 1 193 use `test`; CREATE TABLE t1 (a INT)
|
||||
master-bin.000001 193 Query 1 261 BEGIN
|
||||
master-bin.000001 261 Table_map 1 302 table_id: # (test.t1)
|
||||
master-bin.000001 302 Write_rows 1 341 table_id: # flags: STMT_END_F
|
||||
master-bin.000001 341 Query 1 410 COMMIT
|
||||
DROP TABLE t1;
|
||||
================ Test for BUG#17620 ================
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
|
||||
@@ -57,6 +57,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -111,6 +113,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 12, test.t1 on slave has size 12. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -165,6 +169,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 10, test.t1 on slave has size 3. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -220,6 +226,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 type mismatch - received type 5, test.t1 has type 4
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -275,6 +283,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 8, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -329,6 +339,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 2. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -384,6 +396,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -439,6 +453,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 20, test.t1 on slave has size 11. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -525,6 +541,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -580,6 +598,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 100. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -634,6 +654,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 200, test.t1 on slave has size 10. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -688,6 +710,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 2000, test.t1 on slave has size 1000. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
@@ -743,6 +767,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error Table definition on master and slave does not match: Column 0 size mismatch - master has size 4, test.t1 on slave has size 1. Master's column size should be <= the slave's column size.
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
0
|
||||
|
||||
@@ -24,7 +24,7 @@ a
|
||||
1
|
||||
[on slave]
|
||||
---- Wait until slave stops with an error ----
|
||||
Last_SQL_Error = Could not execute Write_rows event on table test.t1; Duplicate entry '1' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000001, end_log_pos 346 (expected "duplicate key" error)
|
||||
Last_SQL_Error = Could not execute Write_rows event on table test.t1; Duplicate entry '1' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000001, end_log_pos 347 (expected "duplicate key" error)
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
1
|
||||
@@ -50,7 +50,7 @@ SELECT * FROM t1;
|
||||
a
|
||||
[on slave]
|
||||
---- Wait until slave stops with an error ----
|
||||
Last_SQL_Error = Could not execute Delete_rows event on table test.t1; Can't find record in 't1', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log master-bin.000001, end_log_pos 982 (expected "can't find record" error)
|
||||
Last_SQL_Error = Could not execute Delete_rows event on table test.t1; Can't find record in 't1', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master log master-bin.000001, end_log_pos 983 (expected "can't find record" error)
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
---- Resolve the conflict on the slave and restart SQL thread ----
|
||||
|
||||
@@ -13,30 +13,30 @@ CREATE TABLE t1 (a INT, b INT);
|
||||
CREATE TABLE t2 (a INT, b INT) ENGINE=Merge;
|
||||
CREATE TABLE t3 (a INT, b INT) CHARSET=utf8;
|
||||
CREATE TABLE t4 (a INT, b INT) ENGINE=Merge CHARSET=utf8;
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name #
|
||||
Pos 106
|
||||
Pos 107
|
||||
Event_type Query
|
||||
Server_id #
|
||||
End_log_pos 199
|
||||
End_log_pos 200
|
||||
Info use `test`; CREATE TABLE t1 (a INT, b INT)
|
||||
Log_name #
|
||||
Pos 199
|
||||
Pos 200
|
||||
Event_type Query
|
||||
Server_id #
|
||||
End_log_pos 305
|
||||
End_log_pos 306
|
||||
Info use `test`; CREATE TABLE t2 (a INT, b INT) ENGINE=Merge
|
||||
Log_name #
|
||||
Pos 305
|
||||
Pos 306
|
||||
Event_type Query
|
||||
Server_id #
|
||||
End_log_pos 411
|
||||
End_log_pos 412
|
||||
Info use `test`; CREATE TABLE t3 (a INT, b INT) CHARSET=utf8
|
||||
Log_name #
|
||||
Pos 411
|
||||
Pos 412
|
||||
Event_type Query
|
||||
Server_id #
|
||||
End_log_pos 530
|
||||
End_log_pos 531
|
||||
Info use `test`; CREATE TABLE t4 (a INT, b INT) ENGINE=Merge CHARSET=utf8
|
||||
**** On Master ****
|
||||
SHOW CREATE TABLE t1;
|
||||
@@ -137,7 +137,7 @@ RESET MASTER;
|
||||
include/start_slave.inc
|
||||
CREATE TABLE t7 (UNIQUE(b)) SELECT a,b FROM tt3;
|
||||
ERROR 23000: Duplicate entry '2' for key 'b'
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
CREATE TABLE t7 (a INT, b INT UNIQUE);
|
||||
INSERT INTO t7 SELECT a,b FROM tt3;
|
||||
@@ -147,13 +147,13 @@ a b
|
||||
1 2
|
||||
2 4
|
||||
3 6
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
# 106 Query # 206 use `test`; CREATE TABLE t7 (a INT, b INT UNIQUE)
|
||||
# 206 Query # 274 BEGIN
|
||||
# 274 Table_map # 316 table_id: # (test.t7)
|
||||
# 316 Write_rows # 372 table_id: # flags: STMT_END_F
|
||||
# 372 Query # 443 ROLLBACK
|
||||
# 107 Query # 207 use `test`; CREATE TABLE t7 (a INT, b INT UNIQUE)
|
||||
# 207 Query # 275 BEGIN
|
||||
# 275 Table_map # 317 table_id: # (test.t7)
|
||||
# 317 Write_rows # 373 table_id: # flags: STMT_END_F
|
||||
# 373 Query # 444 ROLLBACK
|
||||
SELECT * FROM t7 ORDER BY a,b;
|
||||
a b
|
||||
1 2
|
||||
@@ -171,12 +171,12 @@ INSERT INTO t7 SELECT a,b FROM tt4;
|
||||
ROLLBACK;
|
||||
Warnings:
|
||||
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
# 106 Query # 174 BEGIN
|
||||
# 174 Table_map # 216 table_id: # (test.t7)
|
||||
# 216 Write_rows # 272 table_id: # flags: STMT_END_F
|
||||
# 272 Query # 341 COMMIT
|
||||
# 107 Query # 175 BEGIN
|
||||
# 175 Table_map # 217 table_id: # (test.t7)
|
||||
# 217 Write_rows # 273 table_id: # flags: STMT_END_F
|
||||
# 273 Query # 342 COMMIT
|
||||
SELECT * FROM t7 ORDER BY a,b;
|
||||
a b
|
||||
1 2
|
||||
@@ -216,10 +216,10 @@ Create Table CREATE TABLE `t9` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
# 106 Query # 192 use `test`; CREATE TABLE t8 LIKE t4
|
||||
# 192 Query # 331 use `test`; CREATE TABLE `t9` (
|
||||
# 107 Query # 193 use `test`; CREATE TABLE t8 LIKE t4
|
||||
# 193 Query # 332 use `test`; CREATE TABLE `t9` (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`b` int(11) DEFAULT NULL
|
||||
)
|
||||
@@ -296,38 +296,38 @@ a
|
||||
1
|
||||
2
|
||||
3
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
# 106 Query # 192 use `test`; CREATE TABLE t1 (a INT)
|
||||
# 192 Query # 260 BEGIN
|
||||
# 260 Table_map # 301 table_id: # (test.t1)
|
||||
# 301 Write_rows # 345 table_id: # flags: STMT_END_F
|
||||
# 345 Query # 414 COMMIT
|
||||
# 414 Query # 482 BEGIN
|
||||
# 482 Query # 607 use `test`; CREATE TABLE `t2` (
|
||||
# 107 Query # 193 use `test`; CREATE TABLE t1 (a INT)
|
||||
# 193 Query # 261 BEGIN
|
||||
# 261 Table_map # 302 table_id: # (test.t1)
|
||||
# 302 Write_rows # 346 table_id: # flags: STMT_END_F
|
||||
# 346 Query # 415 COMMIT
|
||||
# 415 Query # 483 BEGIN
|
||||
# 483 Query # 608 use `test`; CREATE TABLE `t2` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB
|
||||
# 607 Table_map # 648 table_id: # (test.t2)
|
||||
# 648 Write_rows # 692 table_id: # flags: STMT_END_F
|
||||
# 692 Xid # 719 COMMIT /* XID */
|
||||
# 719 Query # 787 BEGIN
|
||||
# 787 Query # 912 use `test`; CREATE TABLE `t3` (
|
||||
# 608 Table_map # 649 table_id: # (test.t2)
|
||||
# 649 Write_rows # 693 table_id: # flags: STMT_END_F
|
||||
# 693 Xid # 720 COMMIT /* XID */
|
||||
# 720 Query # 788 BEGIN
|
||||
# 788 Query # 913 use `test`; CREATE TABLE `t3` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB
|
||||
# 912 Table_map # 953 table_id: # (test.t3)
|
||||
# 953 Write_rows # 997 table_id: # flags: STMT_END_F
|
||||
# 997 Xid # 1024 COMMIT /* XID */
|
||||
# 1024 Query # 1092 BEGIN
|
||||
# 1092 Query # 1217 use `test`; CREATE TABLE `t4` (
|
||||
# 913 Table_map # 954 table_id: # (test.t3)
|
||||
# 954 Write_rows # 998 table_id: # flags: STMT_END_F
|
||||
# 998 Xid # 1025 COMMIT /* XID */
|
||||
# 1025 Query # 1093 BEGIN
|
||||
# 1093 Query # 1218 use `test`; CREATE TABLE `t4` (
|
||||
`a` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB
|
||||
# 1217 Table_map # 1258 table_id: # (test.t4)
|
||||
# 1258 Write_rows # 1302 table_id: # flags: STMT_END_F
|
||||
# 1302 Xid # 1329 COMMIT /* XID */
|
||||
# 1329 Query # 1397 BEGIN
|
||||
# 1397 Table_map # 1438 table_id: # (test.t1)
|
||||
# 1438 Write_rows # 1482 table_id: # flags: STMT_END_F
|
||||
# 1482 Query # 1551 COMMIT
|
||||
# 1218 Table_map # 1259 table_id: # (test.t4)
|
||||
# 1259 Write_rows # 1303 table_id: # flags: STMT_END_F
|
||||
# 1303 Xid # 1330 COMMIT /* XID */
|
||||
# 1330 Query # 1398 BEGIN
|
||||
# 1398 Table_map # 1439 table_id: # (test.t1)
|
||||
# 1439 Write_rows # 1483 table_id: # flags: STMT_END_F
|
||||
# 1483 Query # 1552 COMMIT
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t1
|
||||
@@ -390,20 +390,20 @@ a
|
||||
4
|
||||
6
|
||||
9
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
# 106 Query # 192 use `test`; CREATE TABLE t1 (a INT)
|
||||
# 192 Query # 260 BEGIN
|
||||
# 260 Table_map # 301 table_id: # (test.t1)
|
||||
# 301 Write_rows # 345 table_id: # flags: STMT_END_F
|
||||
# 345 Query # 414 COMMIT
|
||||
# 414 Query # 514 use `test`; CREATE TABLE t2 (a INT) ENGINE=INNODB
|
||||
# 514 Query # 582 BEGIN
|
||||
# 582 Table_map # 623 table_id: # (test.t2)
|
||||
# 623 Write_rows # 667 table_id: # flags: STMT_END_F
|
||||
# 667 Table_map # 708 table_id: # (test.t2)
|
||||
# 708 Write_rows # 747 table_id: # flags: STMT_END_F
|
||||
# 747 Xid # 774 COMMIT /* XID */
|
||||
# 107 Query # 193 use `test`; CREATE TABLE t1 (a INT)
|
||||
# 193 Query # 261 BEGIN
|
||||
# 261 Table_map # 302 table_id: # (test.t1)
|
||||
# 302 Write_rows # 346 table_id: # flags: STMT_END_F
|
||||
# 346 Query # 415 COMMIT
|
||||
# 415 Query # 515 use `test`; CREATE TABLE t2 (a INT) ENGINE=INNODB
|
||||
# 515 Query # 583 BEGIN
|
||||
# 583 Table_map # 624 table_id: # (test.t2)
|
||||
# 624 Write_rows # 668 table_id: # flags: STMT_END_F
|
||||
# 668 Table_map # 709 table_id: # (test.t2)
|
||||
# 709 Write_rows # 748 table_id: # flags: STMT_END_F
|
||||
# 748 Xid # 775 COMMIT /* XID */
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a
|
||||
1
|
||||
@@ -429,14 +429,14 @@ Warnings:
|
||||
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a
|
||||
SHOW BINLOG EVENTS FROM 106;
|
||||
SHOW BINLOG EVENTS FROM 107;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
# 106 Query # 174 BEGIN
|
||||
# 174 Table_map # 215 table_id: # (test.t2)
|
||||
# 215 Write_rows # 259 table_id: # flags: STMT_END_F
|
||||
# 259 Table_map # 300 table_id: # (test.t2)
|
||||
# 300 Write_rows # 339 table_id: # flags: STMT_END_F
|
||||
# 339 Query # 410 ROLLBACK
|
||||
# 107 Query # 175 BEGIN
|
||||
# 175 Table_map # 216 table_id: # (test.t2)
|
||||
# 216 Write_rows # 260 table_id: # flags: STMT_END_F
|
||||
# 260 Table_map # 301 table_id: # (test.t2)
|
||||
# 301 Write_rows # 340 table_id: # flags: STMT_END_F
|
||||
# 340 Query # 411 ROLLBACK
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
@@ -43,10 +43,10 @@ t2
|
||||
DROP TABLE t1,t2;
|
||||
SHOW BINLOG EVENTS;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 4 Format_desc 1 106 Server ver: VERSION, Binlog ver: 4
|
||||
master-bin.000001 106 Query 1 192 use `test`; CREATE TABLE t1 (a int)
|
||||
master-bin.000001 192 Query 1 278 use `test`; CREATE TABLE t2 (a int)
|
||||
master-bin.000001 278 Query 1 382 use `test`; DROP TABLE `t1` /* generated by server */
|
||||
master-bin.000001 4 Format_desc 1 107 Server ver: VERSION, Binlog ver: 4
|
||||
master-bin.000001 107 Query 1 193 use `test`; CREATE TABLE t1 (a int)
|
||||
master-bin.000001 193 Query 1 279 use `test`; CREATE TABLE t2 (a int)
|
||||
master-bin.000001 279 Query 1 383 use `test`; DROP TABLE `t1` /* generated by server */
|
||||
SHOW TABLES;
|
||||
Tables_in_test
|
||||
t2
|
||||
|
||||
@@ -12,13 +12,13 @@ create table t4 (a int);
|
||||
insert into t4 select * from t3;
|
||||
rename table t1 to t5, t2 to t1;
|
||||
flush no_write_to_binlog tables;
|
||||
SHOW BINLOG EVENTS FROM 897 ;
|
||||
SHOW BINLOG EVENTS FROM 898 ;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; rename table t1 to t5, t2 to t1
|
||||
select * from t3;
|
||||
a
|
||||
flush tables;
|
||||
SHOW BINLOG EVENTS FROM 897 ;
|
||||
SHOW BINLOG EVENTS FROM 898 ;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; rename table t1 to t5, t2 to t1
|
||||
master-bin.000001 # Query 1 # use `test`; flush tables
|
||||
|
||||
@@ -30,14 +30,14 @@ master-bin.000001 # Query 1 # BEGIN
|
||||
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query 1 # COMMIT
|
||||
show binlog events from 106 limit 1;
|
||||
show binlog events from 107 limit 1;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
|
||||
show binlog events from 106 limit 2;
|
||||
show binlog events from 107 limit 2;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=MyISAM
|
||||
master-bin.000001 # Query 1 # BEGIN
|
||||
show binlog events from 106 limit 2,1;
|
||||
show binlog events from 107 limit 2,1;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
|
||||
flush logs;
|
||||
@@ -251,7 +251,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000002
|
||||
Read_Master_Log_Pos 516
|
||||
Read_Master_Log_Pos 517
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000002
|
||||
@@ -266,7 +266,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 516
|
||||
Exec_Master_Log_Pos 517
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -283,6 +283,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
show binlog events in 'slave-bin.000005' from 4;
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
||||
DROP TABLE t1;
|
||||
|
||||
@@ -30,14 +30,14 @@ master-bin.000001 # Query 1 # BEGIN
|
||||
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows 1 # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Xid 1 # COMMIT /* XID */
|
||||
show binlog events from 106 limit 1;
|
||||
show binlog events from 107 limit 1;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=InnoDB
|
||||
show binlog events from 106 limit 2;
|
||||
show binlog events from 107 limit 2;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # use `test`; create table t1(n int not null auto_increment primary key)ENGINE=InnoDB
|
||||
master-bin.000001 # Query 1 # BEGIN
|
||||
show binlog events from 106 limit 2,1;
|
||||
show binlog events from 107 limit 2,1;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Table_map 1 # table_id: # (test.t1)
|
||||
flush logs;
|
||||
@@ -251,7 +251,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000002
|
||||
Read_Master_Log_Pos 474
|
||||
Read_Master_Log_Pos 475
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000002
|
||||
@@ -266,7 +266,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 474
|
||||
Exec_Master_Log_Pos 475
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -283,6 +283,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
show binlog events in 'slave-bin.000005' from 4;
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
||||
DROP TABLE t1;
|
||||
|
||||
@@ -60,6 +60,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
#
|
||||
# Test 2
|
||||
#
|
||||
@@ -108,6 +110,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
#
|
||||
# Test 3: max_relay_log_size = 0
|
||||
#
|
||||
@@ -156,6 +160,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
#
|
||||
# Test 4: Tests below are mainly to ensure that we have not coded with wrong assumptions
|
||||
#
|
||||
@@ -201,6 +207,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
#
|
||||
# Test 5
|
||||
#
|
||||
@@ -247,6 +255,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
#
|
||||
# Test 6: one more rotation, to be sure Relay_Log_Space is correctly updated
|
||||
#
|
||||
@@ -291,6 +301,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
flush logs;
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
|
||||
@@ -43,6 +43,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
stop slave;
|
||||
change master to master_user='test';
|
||||
SHOW SLAVE STATUS;
|
||||
@@ -84,6 +86,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
reset slave;
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
@@ -124,6 +128,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave;
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
@@ -164,6 +170,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
stop slave;
|
||||
reset slave;
|
||||
start slave;
|
||||
|
||||
274
mysql-test/suite/rpl/r/rpl_row_show_relaylog_events.result
Normal file
274
mysql-test/suite/rpl/r/rpl_row_show_relaylog_events.result
Normal file
@@ -0,0 +1,274 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
CREATE TABLE t1 (a INT);
|
||||
INSERT INTO t1 VALUES (1);
|
||||
INSERT INTO t1 VALUES (2);
|
||||
INSERT INTO t1 VALUES (3);
|
||||
INSERT INTO t1 VALUES (4);
|
||||
INSERT INTO t1 VALUES (5);
|
||||
INSERT INTO t1 VALUES (6);
|
||||
[MASTER] ********* SOW BINLOG EVENTS IN ... *********
|
||||
show binlog events in 'master-bin.000001' from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
[MASTER] ********* SOW BINLOG EVENTS *********
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
[MASTER] ********* SOW BINLOG EVENTS ... LIMIT rows *********
|
||||
show binlog events from <binlog_start> limit 3;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
[MASTER] ********* SOW BINLOG EVENTS ... LIMIT offset,rows *********
|
||||
show binlog events from <binlog_start> limit 1, 3;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
[SLAVE] ********* SOW BINLOG EVENTS IN ... *********
|
||||
show binlog events in 'slave-bin.000001' from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
[SLAVE] ********* SOW BINLOG EVENTS *********
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
[SLAVE] ********* SOW BINLOG EVENTS ... LIMIT rows *********
|
||||
show binlog events from <binlog_start> limit 3;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
[SLAVE] ********* SOW BINLOG EVENTS ... LIMIT offset,rows *********
|
||||
show binlog events from <binlog_start> limit 1, 3;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
[SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
|
||||
show relaylog events in 'slave-relay-bin.000003' from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-relay-bin.000003 # Rotate # # master-bin.000001;pos=4
|
||||
slave-relay-bin.000003 # Format_desc # # SERVER_VERSION, BINLOG_VERSION
|
||||
slave-relay-bin.000003 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
slave-relay-bin.000003 # Table_map # # table_id: # (test.t1)
|
||||
slave-relay-bin.000003 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-relay-bin.000003 # Query # # COMMIT
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
slave-relay-bin.000003 # Table_map # # table_id: # (test.t1)
|
||||
slave-relay-bin.000003 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-relay-bin.000003 # Query # # COMMIT
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
slave-relay-bin.000003 # Table_map # # table_id: # (test.t1)
|
||||
slave-relay-bin.000003 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-relay-bin.000003 # Query # # COMMIT
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
slave-relay-bin.000003 # Table_map # # table_id: # (test.t1)
|
||||
slave-relay-bin.000003 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-relay-bin.000003 # Query # # COMMIT
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
slave-relay-bin.000003 # Table_map # # table_id: # (test.t1)
|
||||
slave-relay-bin.000003 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-relay-bin.000003 # Query # # COMMIT
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
slave-relay-bin.000003 # Table_map # # table_id: # (test.t1)
|
||||
slave-relay-bin.000003 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-relay-bin.000003 # Query # # COMMIT
|
||||
[SLAVE] ********* SOW RELAYLOG EVENTS *********
|
||||
show relaylog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-relay-bin.000002 # Rotate # # slave-relay-bin.000003;pos=4
|
||||
[MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT rows *********
|
||||
show relaylog events in 'slave-relay-bin.000003' from <binlog_start> limit 3;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-relay-bin.000003 # Rotate # # master-bin.000001;pos=4
|
||||
slave-relay-bin.000003 # Format_desc # # SERVER_VERSION, BINLOG_VERSION
|
||||
slave-relay-bin.000003 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
[MASTER] ********* SOW RELAYLOG EVENTS ... LIMIT offset,rows *********
|
||||
show relaylog events in 'slave-relay-bin.000003' from <binlog_start> limit 1, 3;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-relay-bin.000003 # Format_desc # # SERVER_VERSION, BINLOG_VERSION
|
||||
slave-relay-bin.000003 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
slave-relay-bin.000003 # Query # # BEGIN
|
||||
FLUSH LOGS;
|
||||
FLUSH LOGS;
|
||||
DROP TABLE t1;
|
||||
[MASTER] ********* SOW BINLOG EVENTS IN ... *********
|
||||
show binlog events in 'master-bin.000002' from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000002 # Query # # use `test`; DROP TABLE t1
|
||||
[MASTER] ********* SOW BINLOG EVENTS *********
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Query # # BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
master-bin.000001 # Rotate # # master-bin.000002;pos=4
|
||||
[SLAVE] ********* SOW BINLOG EVENTS IN ... *********
|
||||
show binlog events in 'slave-bin.000002' from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000002 # Query # # use `test`; DROP TABLE t1
|
||||
[SLAVE] ********* SOW BINLOG EVENTS *********
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000001 # Query # # use `test`; CREATE TABLE t1 (a INT)
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Query # # BEGIN
|
||||
slave-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
slave-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
slave-bin.000001 # Query # # COMMIT
|
||||
slave-bin.000001 # Rotate # # slave-bin.000002;pos=4
|
||||
[SLAVE] ********* SOW RELAYLOG EVENTS IN ... *********
|
||||
show relaylog events in 'slave-relay-bin.000005' from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-relay-bin.000005 # Rotate # # master-bin.000002;pos=4
|
||||
slave-relay-bin.000005 # Rotate # # slave-relay-bin.000006;pos=4
|
||||
[SLAVE] ********* SOW RELAYLOG EVENTS *********
|
||||
show relaylog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-relay-bin.000005 # Rotate # # master-bin.000002;pos=4
|
||||
slave-relay-bin.000005 # Rotate # # slave-relay-bin.000006;pos=4
|
||||
@@ -1,17 +0,0 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
create table t1 (words varchar(20)) engine=myisam;
|
||||
load data infile '../../std_data/words.dat' into table t1 (words);
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
70
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
70
|
||||
drop table t1;
|
||||
include/stop_slave.inc
|
||||
drop table t1;
|
||||
@@ -105,47 +105,9 @@ a b x
|
||||
2 10 Foo is a bar
|
||||
INSERT INTO t9 VALUES (2);
|
||||
INSERT INTO t1_nodef VALUES (1,2);
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port #
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 1364
|
||||
Last_Error <Last_Error>
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1364
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
select count(*) from t1_nodef;
|
||||
count(*)
|
||||
1
|
||||
INSERT INTO t9 VALUES (2);
|
||||
**** On Master ****
|
||||
INSERT INTO t2 VALUES (2,4);
|
||||
@@ -195,6 +157,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
INSERT INTO t9 VALUES (4);
|
||||
INSERT INTO t4 VALUES (4);
|
||||
SHOW SLAVE STATUS;
|
||||
@@ -236,6 +200,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
INSERT INTO t9 VALUES (5);
|
||||
@@ -279,6 +245,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
INSERT INTO t9 VALUES (6);
|
||||
@@ -322,6 +290,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
INSERT INTO t9 VALUES (6);
|
||||
@@ -364,6 +334,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
INSERT INTO t7 VALUES (1),(2),(3);
|
||||
INSERT INTO t8 VALUES (1),(2),(3);
|
||||
SELECT * FROM t7 ORDER BY a;
|
||||
|
||||
@@ -105,47 +105,9 @@ a b x
|
||||
2 10 Foo is a bar
|
||||
INSERT INTO t9 VALUES (2);
|
||||
INSERT INTO t1_nodef VALUES (1,2);
|
||||
SHOW SLAVE STATUS;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port #
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 1364
|
||||
Last_Error <Last_Error>
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
Until_Log_Pos 0
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1364
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
select count(*) from t1_nodef;
|
||||
count(*)
|
||||
1
|
||||
INSERT INTO t9 VALUES (2);
|
||||
**** On Master ****
|
||||
INSERT INTO t2 VALUES (2,4);
|
||||
@@ -195,6 +157,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
INSERT INTO t9 VALUES (4);
|
||||
INSERT INTO t4 VALUES (4);
|
||||
SHOW SLAVE STATUS;
|
||||
@@ -236,6 +200,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
INSERT INTO t9 VALUES (5);
|
||||
@@ -279,6 +245,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
INSERT INTO t9 VALUES (6);
|
||||
@@ -322,6 +290,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 1535
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||
START SLAVE;
|
||||
INSERT INTO t9 VALUES (6);
|
||||
@@ -364,6 +334,8 @@ Last_IO_Errno <Last_IO_Errno>
|
||||
Last_IO_Error <Last_IO_Error>
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error <Last_SQL_Error>
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
INSERT INTO t7 VALUES (1),(2),(3);
|
||||
INSERT INTO t8 VALUES (1),(2),(3);
|
||||
SELECT * FROM t7 ORDER BY a;
|
||||
|
||||
@@ -59,6 +59,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=291;
|
||||
SELECT * FROM t1;
|
||||
n
|
||||
@@ -105,6 +107,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2
|
||||
SELECT * FROM t2;
|
||||
n
|
||||
@@ -149,6 +153,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
START SLAVE;
|
||||
include/stop_slave.inc
|
||||
START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2
|
||||
@@ -191,6 +197,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=561;
|
||||
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=561, RELAY_LOG_POS=12;
|
||||
|
||||
440
mysql-test/suite/rpl/r/rpl_semi_sync.result
Normal file
440
mysql-test/suite/rpl/r/rpl_semi_sync.result
Normal file
@@ -0,0 +1,440 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
#
|
||||
# Uninstall semi-sync plugins on master and slave
|
||||
#
|
||||
include/stop_slave.inc
|
||||
reset slave;
|
||||
UNINSTALL PLUGIN rpl_semi_sync_slave;
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
reset master;
|
||||
set sql_log_bin=0;
|
||||
UNINSTALL PLUGIN rpl_semi_sync_slave;
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
set sql_log_bin=1;
|
||||
#
|
||||
# Main test of semi-sync replication start here
|
||||
#
|
||||
[ on master ]
|
||||
[ default state of semi-sync on master should be OFF ]
|
||||
show variables like 'rpl_semi_sync_master_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_master_enabled OFF
|
||||
[ enable semi-sync on master ]
|
||||
set global rpl_semi_sync_master_enabled = 1;
|
||||
show variables like 'rpl_semi_sync_master_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_master_enabled ON
|
||||
[ status of semi-sync on master should be ON even without any semi-sync slaves ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 0
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 0
|
||||
#
|
||||
# BUG#45672 Semisync repl: ActiveTranx:insert_tranx_node: transaction node allocation failed
|
||||
# BUG#45673 Semisynch reports correct operation even if no slave is connected
|
||||
#
|
||||
[ status of semi-sync on master should be OFF ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 0
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status OFF
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 0
|
||||
#
|
||||
# INSTALL PLUGIN semi-sync on slave
|
||||
#
|
||||
[ on slave ]
|
||||
[ default state of semi-sync on slave should be OFF ]
|
||||
show variables like 'rpl_semi_sync_slave_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_slave_enabled OFF
|
||||
[ enable semi-sync on slave ]
|
||||
set global rpl_semi_sync_slave_enabled = 1;
|
||||
show variables like 'rpl_semi_sync_slave_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_slave_enabled ON
|
||||
include/start_slave.inc
|
||||
[ on master ]
|
||||
[ initial master state after the semi-sync slave connected ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 1
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 0
|
||||
create table t1(a int) engine = ENGINE_TYPE;
|
||||
[ master state after CREATE TABLE statement ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 1
|
||||
select CONNECTIONS_NORMAL_SLAVE - CONNECTIONS_NORMAL_SLAVE as 'Should be 0';
|
||||
Should be 0
|
||||
0
|
||||
[ insert records to table ]
|
||||
[ master status after inserts ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 301
|
||||
[ on slave ]
|
||||
[ slave status after replicated inserts ]
|
||||
show status like 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status ON
|
||||
select count(distinct a) from t1;
|
||||
count(distinct a)
|
||||
300
|
||||
select min(a) from t1;
|
||||
min(a)
|
||||
1
|
||||
select max(a) from t1;
|
||||
max(a)
|
||||
300
|
||||
#
|
||||
# Test semi-sync master will switch OFF after one transacton
|
||||
# timeout waiting for slave reply.
|
||||
#
|
||||
include/stop_slave.inc
|
||||
[ on master ]
|
||||
[ master status should be ON ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 301
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 1
|
||||
[ semi-sync replication of these transactions will fail ]
|
||||
insert into t1 values (500);
|
||||
[ master status should be OFF ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status OFF
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 1
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 301
|
||||
insert into t1 values (100);
|
||||
[ master status should be OFF ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status OFF
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 302
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 301
|
||||
#
|
||||
# Test semi-sync status on master will be ON again when slave catches up
|
||||
#
|
||||
[ on slave ]
|
||||
[ slave status should be OFF ]
|
||||
show status like 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status OFF
|
||||
include/start_slave.inc
|
||||
[ slave status should be ON ]
|
||||
show status like 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status ON
|
||||
select count(distinct a) from t1;
|
||||
count(distinct a)
|
||||
2
|
||||
select min(a) from t1;
|
||||
min(a)
|
||||
100
|
||||
select max(a) from t1;
|
||||
max(a)
|
||||
500
|
||||
[ on master ]
|
||||
[ master status should be ON again after slave catches up ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 302
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 301
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 1
|
||||
#
|
||||
# Test disable/enable master semi-sync on the fly.
|
||||
#
|
||||
drop table t1;
|
||||
[ on slave ]
|
||||
include/stop_slave.inc
|
||||
#
|
||||
# Flush status
|
||||
#
|
||||
[ Semi-sync master status variables before FLUSH STATUS ]
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 302
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 302
|
||||
FLUSH NO_WRITE_TO_BINLOG STATUS;
|
||||
[ Semi-sync master status variables after FLUSH STATUS ]
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 0
|
||||
[ on master ]
|
||||
show master logs;
|
||||
Log_name master-bin.000001
|
||||
File_size #
|
||||
show variables like 'rpl_semi_sync_master_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_master_enabled ON
|
||||
[ disable semi-sync on the fly ]
|
||||
set global rpl_semi_sync_master_enabled=0;
|
||||
show variables like 'rpl_semi_sync_master_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_master_enabled OFF
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status OFF
|
||||
[ enable semi-sync on the fly ]
|
||||
set global rpl_semi_sync_master_enabled=1;
|
||||
show variables like 'rpl_semi_sync_master_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_master_enabled ON
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
#
|
||||
# Test RESET MASTER/SLAVE
|
||||
#
|
||||
[ on slave ]
|
||||
include/start_slave.inc
|
||||
[ on master ]
|
||||
create table t1 (a int) engine = ENGINE_TYPE;
|
||||
drop table t1;
|
||||
show status like 'Rpl_relay%';
|
||||
Variable_name Value
|
||||
[ test reset master ]
|
||||
[ on master]
|
||||
reset master;
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 0
|
||||
[ on slave ]
|
||||
include/stop_slave.inc
|
||||
reset slave;
|
||||
include/start_slave.inc
|
||||
[ on master ]
|
||||
create table t1 (a int) engine = ENGINE_TYPE;
|
||||
insert into t1 values (1);
|
||||
insert into t1 values (2), (3);
|
||||
[ on slave ]
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
[ on master ]
|
||||
[ master semi-sync status should be ON ]
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 3
|
||||
#
|
||||
# Start semi-sync replication without SUPER privilege
|
||||
#
|
||||
include/stop_slave.inc
|
||||
reset slave;
|
||||
[ on master ]
|
||||
reset master;
|
||||
set sql_log_bin=0;
|
||||
grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
|
||||
flush privileges;
|
||||
set sql_log_bin=1;
|
||||
[ on slave ]
|
||||
grant replication slave on *.* to rpl@127.0.0.1 identified by 'rpl';
|
||||
flush privileges;
|
||||
change master to master_user='rpl',master_password='rpl';
|
||||
include/start_slave.inc
|
||||
show status like 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status ON
|
||||
[ on master ]
|
||||
[ master semi-sync should be ON ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 1
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 0
|
||||
insert into t1 values (4);
|
||||
insert into t1 values (5);
|
||||
[ master semi-sync should be ON ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 1
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
show status like 'Rpl_semi_sync_master_no_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_no_tx 0
|
||||
show status like 'Rpl_semi_sync_master_yes_tx';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_yes_tx 2
|
||||
#
|
||||
# Test semi-sync slave connect to non-semi-sync master
|
||||
#
|
||||
[ on slave ]
|
||||
include/stop_slave.inc
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status OFF
|
||||
[ on master ]
|
||||
[ Semi-sync status on master should be ON ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 0
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status ON
|
||||
set global rpl_semi_sync_master_enabled= 0;
|
||||
[ on slave ]
|
||||
SHOW VARIABLES LIKE 'rpl_semi_sync_slave_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_slave_enabled ON
|
||||
include/start_slave.inc
|
||||
[ on master ]
|
||||
insert into t1 values (8);
|
||||
[ master semi-sync clients should be 1, status should be OFF ]
|
||||
show status like 'Rpl_semi_sync_master_clients';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_clients 1
|
||||
show status like 'Rpl_semi_sync_master_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_master_status OFF
|
||||
[ on slave ]
|
||||
show status like 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status ON
|
||||
include/stop_slave.inc
|
||||
[ on master ]
|
||||
set sql_log_bin=0;
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
set sql_log_bin=1;
|
||||
SHOW VARIABLES LIKE 'rpl_semi_sync_master_enabled';
|
||||
Variable_name Value
|
||||
[ on slave ]
|
||||
SHOW VARIABLES LIKE 'rpl_semi_sync_slave_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_slave_enabled ON
|
||||
include/start_slave.inc
|
||||
[ on master ]
|
||||
insert into t1 values (10);
|
||||
[ on slave ]
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status OFF
|
||||
#
|
||||
# Test non-semi-sync slave connect to semi-sync master
|
||||
#
|
||||
set sql_log_bin=0;
|
||||
INSTALL PLUGIN rpl_semi_sync_master SONAME 'libsemisync_master.so';
|
||||
set global rpl_semi_sync_master_timeout= 5000;
|
||||
/* 5s */
|
||||
set sql_log_bin=1;
|
||||
set global rpl_semi_sync_master_enabled= 1;
|
||||
[ on slave ]
|
||||
include/stop_slave.inc
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status OFF
|
||||
[ uninstall semi-sync slave plugin ]
|
||||
UNINSTALL PLUGIN rpl_semi_sync_slave;
|
||||
SHOW VARIABLES LIKE 'rpl_semi_sync_slave_enabled';
|
||||
Variable_name Value
|
||||
include/start_slave.inc
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
include/stop_slave.inc
|
||||
[ reinstall semi-sync slave plugin and disable semi-sync ]
|
||||
INSTALL PLUGIN rpl_semi_sync_slave SONAME 'libsemisync_slave.so';
|
||||
set global rpl_semi_sync_slave_enabled= 0;
|
||||
SHOW VARIABLES LIKE 'rpl_semi_sync_slave_enabled';
|
||||
Variable_name Value
|
||||
rpl_semi_sync_slave_enabled OFF
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status OFF
|
||||
include/start_slave.inc
|
||||
SHOW STATUS LIKE 'Rpl_semi_sync_slave_status';
|
||||
Variable_name Value
|
||||
Rpl_semi_sync_slave_status OFF
|
||||
#
|
||||
# Clean up
|
||||
#
|
||||
include/stop_slave.inc
|
||||
UNINSTALL PLUGIN rpl_semi_sync_slave;
|
||||
UNINSTALL PLUGIN rpl_semi_sync_master;
|
||||
include/start_slave.inc
|
||||
drop table t1;
|
||||
drop user rpl@127.0.0.1;
|
||||
flush privileges;
|
||||
46
mysql-test/suite/rpl/r/rpl_server_id_ignore.result
Normal file
46
mysql-test/suite/rpl/r/rpl_server_id_ignore.result
Normal file
@@ -0,0 +1,46 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
master_id: 1
|
||||
stop slave;
|
||||
*** --replicate-same-server-id and change master option can clash ***
|
||||
change master to IGNORE_SERVER_IDS= (2, 1);
|
||||
ERROR HY000: The requested server id 2 clashes with the slave startup option --replicate-same-server-id
|
||||
*** must be empty due to the error ***
|
||||
ignore server id list:
|
||||
change master to IGNORE_SERVER_IDS= (10, 100);
|
||||
*** must be 10, 100 ***
|
||||
ignore server id list: 10, 100
|
||||
reset slave;
|
||||
*** must be empty due to reset slave ***
|
||||
ignore server id list: 10, 100
|
||||
change master to IGNORE_SERVER_IDS= (10, 100);
|
||||
*** CHANGE MASTER with IGNORE_SERVER_IDS option overrides (does not increment) the previous setup ***
|
||||
change master to IGNORE_SERVER_IDS= (5, 1, 4, 3, 1);
|
||||
*** must be 1, 3, 4, 5 due to overriding policy ***
|
||||
ignore server id list: 1, 3, 4, 5
|
||||
*** ignore master (server 1) queries for a while ***
|
||||
start slave;
|
||||
create table t1 (n int);
|
||||
*** must be empty as the event is to be filtered out ***
|
||||
show tables;
|
||||
Tables_in_test
|
||||
*** allowing events from master ***
|
||||
stop slave;
|
||||
reset slave;
|
||||
change master to IGNORE_SERVER_IDS= (10, 100);
|
||||
*** the list must remain (10, 100) after reset slave ***
|
||||
change master to IGNORE_SERVER_IDS= ();
|
||||
*** must be empty due to IGNORE_SERVER_IDS empty list ***
|
||||
ignore server id list:
|
||||
change master to master_host='127.0.0.1', master_port=MASTER_PORT, master_user='root';
|
||||
start slave;
|
||||
*** must have caught create table ***
|
||||
show tables;
|
||||
Tables_in_test
|
||||
t1
|
||||
drop table t1;
|
||||
end of the tests
|
||||
@@ -70,6 +70,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
==== Clean Up ====
|
||||
drop table t1;
|
||||
create table t1(a int primary key);
|
||||
@@ -123,6 +125,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
==== Clean Up ====
|
||||
drop table t1;
|
||||
==== Using Innodb ====
|
||||
|
||||
@@ -49,6 +49,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 9
|
||||
Last_SQL_Error Error in Begin_load_query event: write to '../../tmp/SQL_LOAD.data' failed
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
drop table t1;
|
||||
drop table t1;
|
||||
call mtr.add_suppression("Slave: Error writing file 'UNKNOWN' .Errcode: 9. Error_code: 3");
|
||||
|
||||
@@ -50,7 +50,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 1115
|
||||
Read_Master_Log_Pos 1116
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
@@ -65,7 +65,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 762
|
||||
Exec_Master_Log_Pos 763
|
||||
Relay_Log_Space #
|
||||
Until_Condition Master
|
||||
Until_Log_File master-bin.000001
|
||||
@@ -82,6 +82,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
||||
START SLAVE;
|
||||
SELECT * FROM t1;
|
||||
@@ -114,7 +116,7 @@ Master_User root
|
||||
Master_Port MASTER_PORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos 248
|
||||
Read_Master_Log_Pos 249
|
||||
Relay_Log_File #
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
@@ -129,7 +131,7 @@ Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos 248
|
||||
Exec_Master_Log_Pos 249
|
||||
Relay_Log_Space #
|
||||
Until_Condition None
|
||||
Until_Log_File
|
||||
@@ -146,6 +148,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
**** On Master ****
|
||||
DROP TABLE t1, t2;
|
||||
SET SESSION BINLOG_FORMAT=ROW;
|
||||
|
||||
47
mysql-test/suite/rpl/r/rpl_slow_query_log.result
Normal file
47
mysql-test/suite/rpl/r/rpl_slow_query_log.result
Normal file
@@ -0,0 +1,47 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
include/stop_slave.inc
|
||||
SET @old_log_output= @@log_output;
|
||||
SET GLOBAL log_output= 'TABLE';
|
||||
SET @old_long_query_time= @@long_query_time;
|
||||
SET GLOBAL long_query_time= 2;
|
||||
TRUNCATE mysql.slow_log;
|
||||
include/start_slave.inc
|
||||
CREATE TABLE t1 (a int, b int);
|
||||
INSERT INTO t1 values(1, 1);
|
||||
INSERT INTO t1 values(1, sleep(3));
|
||||
TRUNCATE mysql.slow_log;
|
||||
SELECT 1, sleep(3);
|
||||
1 sleep(3)
|
||||
1 0
|
||||
SELECT 1;
|
||||
1
|
||||
1
|
||||
TRUNCATE mysql.slow_log;
|
||||
SET TIMESTAMP= 1;
|
||||
SELECT 2, sleep(3);
|
||||
2 sleep(3)
|
||||
2 0
|
||||
SELECT 2;
|
||||
2
|
||||
2
|
||||
TRUNCATE mysql.slow_log;
|
||||
SET @old_slow_query_log= @@slow_query_log;
|
||||
SET GLOBAL slow_query_log= 'OFF';
|
||||
SELECT 3, sleep(3);
|
||||
3 sleep(3)
|
||||
3 0
|
||||
SELECT 3;
|
||||
3
|
||||
3
|
||||
TRUNCATE mysql.slow_log;
|
||||
SET GLOBAL slow_query_log= @old_slow_query_log;
|
||||
DROP TABLE t1;
|
||||
include/stop_slave.inc
|
||||
SET GLOBAL long_query_time= @old_long_query_time;
|
||||
SET GLOBAL log_output= @old_log_output;
|
||||
include/start_slave.inc
|
||||
@@ -409,110 +409,110 @@ return 0;
|
||||
end|
|
||||
use mysqltest;
|
||||
set @a:= mysqltest2.f1();
|
||||
show binlog events in 'master-bin.000001' from 106;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query 1 # drop database if exists mysqltest1
|
||||
master-bin.000001 # Query 1 # create database mysqltest1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; create table t1 (a varchar(100))
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo`()
|
||||
master-bin.000001 # Query # # drop database if exists mysqltest1
|
||||
master-bin.000001 # Query # # create database mysqltest1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; create table t1 (a varchar(100))
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo`()
|
||||
begin
|
||||
declare b int;
|
||||
set b = 8;
|
||||
insert into t1 values (b);
|
||||
insert into t1 values (unix_timestamp());
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values ( NAME_CONST('b',8))
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values (unix_timestamp())
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo2`()
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values ( NAME_CONST('b',8))
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values (unix_timestamp())
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo2`()
|
||||
select * from mysqltest1.t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; alter procedure foo2 contains sql
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop table t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; create table t1 (a int)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; create table t2 like t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo3`()
|
||||
master-bin.000001 # Query # # use `mysqltest1`; alter procedure foo2 contains sql
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop table t1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; create table t1 (a int)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; create table t2 like t1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo3`()
|
||||
DETERMINISTIC
|
||||
insert into t1 values (15)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; grant CREATE ROUTINE, EXECUTE on mysqltest1.* to "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; grant SELECT on mysqltest1.t1 to "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; grant SELECT, INSERT on mysqltest1.t2 to "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`zedjzlcsjhd`@`127.0.0.1` PROCEDURE `foo4`()
|
||||
master-bin.000001 # Query # # use `mysqltest1`; grant CREATE ROUTINE, EXECUTE on mysqltest1.* to "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; grant SELECT on mysqltest1.t1 to "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; grant SELECT, INSERT on mysqltest1.t2 to "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`zedjzlcsjhd`@`127.0.0.1` PROCEDURE `foo4`()
|
||||
DETERMINISTIC
|
||||
begin
|
||||
insert into t2 values(3);
|
||||
insert into t1 values (5);
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t2 values(3)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values (15)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t2 values(3)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; alter procedure foo4 sql security invoker
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t2 values(3)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values (5)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete from t2
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; alter table t2 add unique (a)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop procedure foo4
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo4`()
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t2 values(3)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values (15)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t2 values(3)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; alter procedure foo4 sql security invoker
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t2 values(3)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values (5)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete from t2
|
||||
master-bin.000001 # Query # # use `mysqltest1`; alter table t2 add unique (a)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop procedure foo4
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo4`()
|
||||
DETERMINISTIC
|
||||
begin
|
||||
insert into t2 values(20),(20);
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t2 values(20),(20)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop procedure foo4
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop procedure foo
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop procedure foo2
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop procedure foo3
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn1`(x int) RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t2 values(20),(20)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop procedure foo4
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop procedure foo
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop procedure foo2
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop procedure foo3
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn1`(x int) RETURNS int(11)
|
||||
DETERMINISTIC
|
||||
begin
|
||||
insert into t1 values (x);
|
||||
return x+2;
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete t1,t2 from t1,t2
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; SELECT `mysqltest1`.`fn1`(20)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t2 values(fn1(21))
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop function fn1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn1`() RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete t1,t2 from t1,t2
|
||||
master-bin.000001 # Query # # use `mysqltest1`; SELECT `mysqltest1`.`fn1`(20)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t2 values(fn1(21))
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop function fn1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn1`() RETURNS int(11)
|
||||
NO SQL
|
||||
begin
|
||||
return unix_timestamp();
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values(fn1())
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`zedjzlcsjhd`@`127.0.0.1` FUNCTION `fn2`() RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values(fn1())
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`zedjzlcsjhd`@`127.0.0.1` FUNCTION `fn2`() RETURNS int(11)
|
||||
NO SQL
|
||||
begin
|
||||
return unix_timestamp();
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn3`() RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn3`() RETURNS int(11)
|
||||
READS SQL DATA
|
||||
begin
|
||||
return 0;
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete from t2
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; alter table t2 add unique (a)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop function fn1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn1`(x int) RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete from t2
|
||||
master-bin.000001 # Query # # use `mysqltest1`; alter table t2 add unique (a)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop function fn1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` FUNCTION `fn1`(x int) RETURNS int(11)
|
||||
begin
|
||||
insert into t2 values(x),(x);
|
||||
return 10;
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; SELECT `mysqltest1`.`fn1`(100)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; SELECT `mysqltest1`.`fn1`(20)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` trigger trg before insert on t1 for each row set new.a= 10
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values (1)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop trigger trg
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; insert into t1 values (1)
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo`()
|
||||
master-bin.000001 # Query # # use `mysqltest1`; SELECT `mysqltest1`.`fn1`(100)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; SELECT `mysqltest1`.`fn1`(20)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` trigger trg before insert on t1 for each row set new.a= 10
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values (1)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; delete from t1
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop trigger trg
|
||||
master-bin.000001 # Query # # use `mysqltest1`; insert into t1 values (1)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; CREATE DEFINER=`root`@`localhost` PROCEDURE `foo`()
|
||||
READS SQL DATA
|
||||
select * from t1
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop procedure foo
|
||||
master-bin.000001 # Query 1 # use `mysqltest1`; drop function fn1
|
||||
master-bin.000001 # Query 1 # drop database mysqltest1
|
||||
master-bin.000001 # Query 1 # drop user "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query 1 # use `test`; drop function if exists f1
|
||||
master-bin.000001 # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop procedure foo
|
||||
master-bin.000001 # Query # # use `mysqltest1`; drop function fn1
|
||||
master-bin.000001 # Query # # drop database mysqltest1
|
||||
master-bin.000001 # Query # # drop user "zedjzlcsjhd"@127.0.0.1
|
||||
master-bin.000001 # Query # # use `test`; drop function if exists f1
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
|
||||
READS SQL DATA
|
||||
begin
|
||||
declare var integer;
|
||||
@@ -522,41 +522,41 @@ fetch c into var;
|
||||
close c;
|
||||
return var;
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `test`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 as a
|
||||
master-bin.000001 # Query 1 # use `test`; create table t1 (a int)
|
||||
master-bin.000001 # Query 1 # use `test`; insert into t1 (a) values (f1())
|
||||
master-bin.000001 # Query 1 # use `test`; drop view v1
|
||||
master-bin.000001 # Query 1 # use `test`; drop function f1
|
||||
master-bin.000001 # Query 1 # use `test`; DROP PROCEDURE IF EXISTS p1
|
||||
master-bin.000001 # Query 1 # use `test`; DROP TABLE IF EXISTS t1
|
||||
master-bin.000001 # Query 1 # use `test`; CREATE TABLE t1(col VARCHAR(10))
|
||||
master-bin.000001 # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(arg VARCHAR(10))
|
||||
master-bin.000001 # Query # # use `test`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select 1 as a
|
||||
master-bin.000001 # Query # # use `test`; create table t1 (a int)
|
||||
master-bin.000001 # Query # # use `test`; insert into t1 (a) values (f1())
|
||||
master-bin.000001 # Query # # use `test`; drop view v1
|
||||
master-bin.000001 # Query # # use `test`; drop function f1
|
||||
master-bin.000001 # Query # # use `test`; DROP PROCEDURE IF EXISTS p1
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS t1
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(col VARCHAR(10))
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(arg VARCHAR(10))
|
||||
INSERT INTO t1 VALUES(arg)
|
||||
master-bin.000001 # Query 1 # use `test`; INSERT INTO t1 VALUES( NAME_CONST('arg',_latin1'test' COLLATE 'latin1_swedish_ci'))
|
||||
master-bin.000001 # Query 1 # use `test`; DROP PROCEDURE p1
|
||||
master-bin.000001 # Query 1 # use `test`; DROP PROCEDURE IF EXISTS p1
|
||||
master-bin.000001 # Query 1 # use `test`; DROP FUNCTION IF EXISTS f1
|
||||
master-bin.000001 # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES( NAME_CONST('arg',_latin1'test' COLLATE 'latin1_swedish_ci'))
|
||||
master-bin.000001 # Query # # use `test`; DROP PROCEDURE p1
|
||||
master-bin.000001 # Query # # use `test`; DROP PROCEDURE IF EXISTS p1
|
||||
master-bin.000001 # Query # # use `test`; DROP FUNCTION IF EXISTS f1
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`()
|
||||
SET @a = 1
|
||||
master-bin.000001 # Query 1 # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `test`; CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
|
||||
RETURN 0
|
||||
master-bin.000001 # Query 1 # use `test`; DROP PROCEDURE p1
|
||||
master-bin.000001 # Query 1 # use `test`; DROP FUNCTION f1
|
||||
master-bin.000001 # Query 1 # use `test`; drop table t1
|
||||
master-bin.000001 # Query 1 # drop database if exists mysqltest
|
||||
master-bin.000001 # Query 1 # drop database if exists mysqltest2
|
||||
master-bin.000001 # Query 1 # create database mysqltest
|
||||
master-bin.000001 # Query 1 # create database mysqltest2
|
||||
master-bin.000001 # Query 1 # use `mysqltest2`; create table t ( t integer )
|
||||
master-bin.000001 # Query 1 # use `mysqltest2`; CREATE DEFINER=`root`@`localhost` PROCEDURE `mysqltest`.`test`()
|
||||
master-bin.000001 # Query # # use `test`; DROP PROCEDURE p1
|
||||
master-bin.000001 # Query # # use `test`; DROP FUNCTION f1
|
||||
master-bin.000001 # Query # # use `test`; drop table t1
|
||||
master-bin.000001 # Query # # drop database if exists mysqltest
|
||||
master-bin.000001 # Query # # drop database if exists mysqltest2
|
||||
master-bin.000001 # Query # # create database mysqltest
|
||||
master-bin.000001 # Query # # create database mysqltest2
|
||||
master-bin.000001 # Query # # use `mysqltest2`; create table t ( t integer )
|
||||
master-bin.000001 # Query # # use `mysqltest2`; CREATE DEFINER=`root`@`localhost` PROCEDURE `mysqltest`.`test`()
|
||||
begin end
|
||||
master-bin.000001 # Query 1 # use `mysqltest2`; insert into t values ( 1 )
|
||||
master-bin.000001 # Query 1 # use `mysqltest2`; CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
|
||||
master-bin.000001 # Query # # use `mysqltest2`; insert into t values ( 1 )
|
||||
master-bin.000001 # Query # # use `mysqltest2`; CREATE DEFINER=`root`@`localhost` FUNCTION `f1`() RETURNS int(11)
|
||||
begin
|
||||
insert into t values (1);
|
||||
return 0;
|
||||
end
|
||||
master-bin.000001 # Query 1 # use `mysqltest`; SELECT `mysqltest2`.`f1`()
|
||||
master-bin.000001 # Query # # use `mysqltest`; SELECT `mysqltest2`.`f1`()
|
||||
set @@global.log_bin_trust_routine_creators= @old_log_bin_trust_routine_creators;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@log_bin_trust_routine_creators' is deprecated and will be removed in MySQL 6.0. Please use '@@log_bin_trust_function_creators' instead
|
||||
|
||||
225
mysql-test/suite/rpl/r/rpl_spec_variables.result
Normal file
225
mysql-test/suite/rpl/r/rpl_spec_variables.result
Normal file
@@ -0,0 +1,225 @@
|
||||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
|
||||
* auto_increment_increment, auto_increment_offset *
|
||||
SET @@global.auto_increment_increment=2;
|
||||
SET @@session.auto_increment_increment=2;
|
||||
SET @@global.auto_increment_offset=10;
|
||||
SET @@session.auto_increment_offset=10;
|
||||
SET @@global.auto_increment_increment=3;
|
||||
SET @@session.auto_increment_increment=3;
|
||||
SET @@global.auto_increment_offset=20;
|
||||
SET @@session.auto_increment_offset=20;
|
||||
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
|
||||
INSERT INTO t1 (b) VALUES ('master');
|
||||
INSERT INTO t1 (b) VALUES ('master');
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
2 master
|
||||
4 master
|
||||
CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
|
||||
INSERT INTO t1 (b) VALUES ('slave');
|
||||
INSERT INTO t1 (b) VALUES ('slave');
|
||||
INSERT INTO t2 (b) VALUES ('slave');
|
||||
INSERT INTO t2 (b) VALUES ('slave');
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b
|
||||
2 master
|
||||
4 master
|
||||
7 slave
|
||||
10 slave
|
||||
SELECT * FROM t2 ORDER BY a;
|
||||
a b
|
||||
1 slave
|
||||
4 slave
|
||||
DROP TABLE IF EXISTS t1,t2;
|
||||
SET @@global.auto_increment_increment=1;
|
||||
SET @@session.auto_increment_increment=1;
|
||||
SET @@global.auto_increment_offset=1;
|
||||
SET @@session.auto_increment_offset=1;
|
||||
SET @@global.auto_increment_increment=1;
|
||||
SET @@session.auto_increment_increment=1;
|
||||
SET @@global.auto_increment_offset=1;
|
||||
SET @@session.auto_increment_offset=1;
|
||||
SET auto_increment_increment=1;
|
||||
SET auto_increment_offset=1;
|
||||
|
||||
* character_set_database, collation_server *
|
||||
SET @restore_master_character_set_database=@@global.character_set_database;
|
||||
SET @restore_master_collation_server=@@global.collation_server;
|
||||
SET @@global.character_set_database=latin1;
|
||||
SET @@session.character_set_database=latin1;
|
||||
SET @@global.collation_server=latin1_german1_ci;
|
||||
SET @@session.collation_server=latin1_german1_ci;
|
||||
SET @restore_slave_character_set_database=@@global.character_set_database;
|
||||
SET @restore_slave_collation_server=@@global.collation_server;
|
||||
SET @@global.character_set_database=utf8;
|
||||
SET @@session.character_set_database=utf8;
|
||||
SET @@global.collation_server=utf8_bin;
|
||||
SET @@session.collation_server=utf8_bin;
|
||||
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) COLLATE latin1_german1_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
|
||||
CREATE TABLE t2 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=MyISAM;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) COLLATE latin1_german1_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) COLLATE utf8_bin DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin
|
||||
SET @@global.collation_server=latin1_swedish_ci;
|
||||
SET @@session.collation_server=latin1_swedish_ci;
|
||||
SET @@global.collation_server=latin1_swedish_ci;
|
||||
SET @@session.collation_server=latin1_swedish_ci;
|
||||
DROP TABLE IF EXISTS t1,t2;
|
||||
|
||||
* default_week_format *
|
||||
SET @@global.default_week_format=0;
|
||||
SET @@session.default_week_format=0;
|
||||
SET @@global.default_week_format=1;
|
||||
SET @@session.default_week_format=1;
|
||||
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10), c INT) ENGINE=MyISAM;
|
||||
INSERT INTO t1 VALUES (1, 'master ', WEEK('2008-01-07'));
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b c
|
||||
1 master 1
|
||||
INSERT INTO t1 VALUES (2, 'slave ', WEEK('2008-01-07'));
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b c
|
||||
1 master 1
|
||||
2 slave 2
|
||||
DROP TABLE t1;
|
||||
SET @@global.default_week_format=0;
|
||||
SET @@session.default_week_format=0;
|
||||
|
||||
* local_infile *
|
||||
SET @@global.local_infile=0;
|
||||
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(20), c CHAR(254)) ENGINE=MyISAM;
|
||||
LOAD DATA LOCAL INFILE 'FILE' INTO TABLE t1 (b);
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
70
|
||||
LOAD DATA LOCAL INFILE 'FILE2' INTO TABLE t1 (b);
|
||||
ERROR 42000: The used command is not allowed with this MySQL version
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
70
|
||||
SET @@global.local_infile=1;
|
||||
DROP TABLE t1;
|
||||
|
||||
* max_heap_table_size *
|
||||
SET @restore_slave_max_heap_table_size=@@global.max_heap_table_size;
|
||||
SET @@global.max_heap_table_size=16384;
|
||||
SET @@session.max_heap_table_size=16384;
|
||||
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT PRIMARY KEY, b VARCHAR(10), c CHAR(254)) ENGINE=MEMORY;
|
||||
SELECT COUNT(*)=2000 FROM t1;
|
||||
COUNT(*)=2000
|
||||
1
|
||||
SELECT COUNT(*)=2000 FROM t1 WHERE b='master' GROUP BY b ORDER BY b;
|
||||
COUNT(*)=2000
|
||||
1
|
||||
SELECT COUNT(*)<2000 AND COUNT(*)>0 FROM t1 WHERE b='slave' GROUP BY b ORDER BY b;
|
||||
COUNT(*)<2000 AND COUNT(*)>0
|
||||
1
|
||||
SELECT COUNT(*)<2000 AND COUNT(*)>0 FROM t2 WHERE b='slave' GROUP BY b ORDER BY b;
|
||||
COUNT(*)<2000 AND COUNT(*)>0
|
||||
1
|
||||
DROP TABLE IF EXISTS t1,t2;
|
||||
|
||||
* storage_engine *
|
||||
SET @restore_master_storage_engine=@@global.storage_engine;
|
||||
SET @@global.storage_engine=InnoDB;
|
||||
SET @@session.storage_engine=InnoDB;
|
||||
SET @restore_slave_storage_engine=@@global.storage_engine;
|
||||
SET @@global.storage_engine=Memory;
|
||||
SET @@session.storage_engine=Memory;
|
||||
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10));
|
||||
CREATE TABLE t2 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10)) ENGINE=InnoDB;
|
||||
CREATE TABLE t3 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10));
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
t2 CREATE TABLE `t2` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
SHOW CREATE TABLE t3;
|
||||
Table Create Table
|
||||
t3 CREATE TABLE `t3` (
|
||||
`a` int(11) NOT NULL,
|
||||
`b` varchar(10) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`)
|
||||
) ENGINE=MEMORY DEFAULT CHARSET=latin1
|
||||
SET @@global.storage_engine=InnoDB;
|
||||
SET @@session.storage_engine=InnoDB;
|
||||
DROP TABLE IF EXISTS t1,t2,t3;
|
||||
|
||||
* sql_mode *
|
||||
SET @@global.sql_mode=ANSI;
|
||||
SET @@session.sql_mode=ANSI;
|
||||
SET @@global.sql_mode=TRADITIONAL;
|
||||
SET @@session.sql_mode=TRADITIONAL;
|
||||
CREATE TABLE t1 (a INT NOT NULL PRIMARY KEY, b VARCHAR(10), c DATE);
|
||||
INSERT INTO t1 VALUES (1, 'master', '0000-00-00');
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b c
|
||||
1 master 0000-00-00
|
||||
INSERT INTO t1 VALUES (1, 'slave', '0000-00-00');
|
||||
ERROR 22007: Incorrect date value: '0000-00-00' for column 'c' at row 1
|
||||
SELECT * FROM t1 ORDER BY a;
|
||||
a b c
|
||||
1 master 0000-00-00
|
||||
SET @@global.sql_mode='';
|
||||
SET @@session.sql_mode='';
|
||||
SET @@global.sql_mode='';
|
||||
SET @@session.sql_mode='';
|
||||
DROP TABLE t1;
|
||||
|
||||
*** clean up ***
|
||||
SET @@global.character_set_database=@restore_master_character_set_database;
|
||||
SET @@global.collation_server=@restore_master_collation_server;
|
||||
SET @@global.storage_engine=@restore_master_storage_engine;
|
||||
SET @@global.character_set_database=@restore_slave_character_set_database;
|
||||
SET @@global.collation_server=@restore_slave_collation_server;
|
||||
SET @@global.max_heap_table_size=@restore_slave_max_heap_table_size;
|
||||
SET @@global.storage_engine=@restore_slave_storage_engine;
|
||||
|
||||
call mtr.add_suppression("The table 't[12]' is full");
|
||||
@@ -58,6 +58,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
STOP SLAVE;
|
||||
select * from t1;
|
||||
t
|
||||
@@ -102,6 +104,8 @@ Last_IO_Errno #
|
||||
Last_IO_Error #
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
drop user replssl@localhost;
|
||||
drop table t1;
|
||||
End of 5.0 tests
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user