Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
55dd7f8b
Commit
55dd7f8b
authored
Mar 30, 2007
by
mats@romeo.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post merge fixes of result files.
parent
b463c782
Changes
31
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
791 additions
and
788 deletions
+791
-788
mysql-test/r/binlog_stm_binlog.result
mysql-test/r/binlog_stm_binlog.result
+46
-45
mysql-test/r/binlog_stm_ctype_ucs.result
mysql-test/r/binlog_stm_ctype_ucs.result
+3
-3
mysql-test/r/binlog_stm_insert_select.result
mysql-test/r/binlog_stm_insert_select.result
+5
-3
mysql-test/r/ctype_cp932_binlog_stm.result
mysql-test/r/ctype_cp932_binlog_stm.result
+10
-10
mysql-test/r/flush_block_commit_notembedded.result
mysql-test/r/flush_block_commit_notembedded.result
+2
-2
mysql-test/r/rpl_000015.result
mysql-test/r/rpl_000015.result
+2
-2
mysql-test/r/rpl_change_master.result
mysql-test/r/rpl_change_master.result
+2
-2
mysql-test/r/rpl_deadlock_innodb.result
mysql-test/r/rpl_deadlock_innodb.result
+2
-2
mysql-test/r/rpl_flushlog_loop.result
mysql-test/r/rpl_flushlog_loop.result
+2
-2
mysql-test/r/rpl_known_bugs_detection.result
mysql-test/r/rpl_known_bugs_detection.result
+2
-2
mysql-test/r/rpl_loaddata.result
mysql-test/r/rpl_loaddata.result
+3
-3
mysql-test/r/rpl_loaddata_s.result
mysql-test/r/rpl_loaddata_s.result
+1
-1
mysql-test/r/rpl_log_pos.result
mysql-test/r/rpl_log_pos.result
+10
-10
mysql-test/r/rpl_rbr_to_sbr.result
mysql-test/r/rpl_rbr_to_sbr.result
+2
-2
mysql-test/r/rpl_rotate_logs.result
mysql-test/r/rpl_rotate_logs.result
+15
-15
mysql-test/r/rpl_row_max_relay_size.result
mysql-test/r/rpl_row_max_relay_size.result
+11
-11
mysql-test/r/rpl_server_id1.result
mysql-test/r/rpl_server_id1.result
+1
-1
mysql-test/r/rpl_server_id2.result
mysql-test/r/rpl_server_id2.result
+1
-1
mysql-test/r/rpl_sp.result
mysql-test/r/rpl_sp.result
+1
-1
mysql-test/r/rpl_stm_charset.result
mysql-test/r/rpl_stm_charset.result
+33
-33
mysql-test/r/rpl_stm_flsh_tbls.result
mysql-test/r/rpl_stm_flsh_tbls.result
+2
-2
mysql-test/r/rpl_stm_log.result
mysql-test/r/rpl_stm_log.result
+8
-8
mysql-test/r/rpl_stm_max_relay_size.result
mysql-test/r/rpl_stm_max_relay_size.result
+11
-11
mysql-test/r/rpl_stm_multi_query.result
mysql-test/r/rpl_stm_multi_query.result
+9
-9
mysql-test/r/rpl_stm_reset_slave.result
mysql-test/r/rpl_stm_reset_slave.result
+3
-3
mysql-test/r/rpl_stm_until.result
mysql-test/r/rpl_stm_until.result
+8
-8
mysql-test/r/rpl_switch_stm_row_mixed.result
mysql-test/r/rpl_switch_stm_row_mixed.result
+474
-474
mysql-test/r/rpl_truncate_2myisam.result
mysql-test/r/rpl_truncate_2myisam.result
+33
-33
mysql-test/r/rpl_truncate_3innodb.result
mysql-test/r/rpl_truncate_3innodb.result
+45
-45
mysql-test/r/rpl_truncate_7ndb.result
mysql-test/r/rpl_truncate_7ndb.result
+38
-38
mysql-test/r/user_var-binlog.result
mysql-test/r/user_var-binlog.result
+6
-6
No files found.
mysql-test/r/binlog_stm_binlog.result
View file @
55dd7f8b
This diff is collapsed.
Click to expand it.
mysql-test/r/binlog_stm_ctype_ucs.result
View file @
55dd7f8b
...
...
@@ -3,10 +3,10 @@ create table t2 (c char(30)) charset=ucs2;
set @v=convert('abc' using ucs2);
reset master;
insert into t2 values (@v);
show binlog events from
106
;
show binlog events from
<binlog_start>
;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001
106 User var 1 145
@`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001
145 Query 1 235
use `test`; insert into t2 values (@v)
master-bin.000001
# User var # #
@`v`=_ucs2 0x006100620063 COLLATE ucs2_general_ci
master-bin.000001
# Query # #
use `test`; insert into t2 values (@v)
flush logs;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
...
...
mysql-test/r/binlog_stm_insert_select.result
View file @
55dd7f8b
...
...
@@ -6,9 +6,10 @@ insert into t2 values(1),(2);
reset master;
insert into t1 select * from t2;
ERROR 23000: Duplicate entry '2' for key 'a'
show binlog events
from <binlog_start>
;
show binlog events;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query # # use `test`; insert into t1 select * from t2
master-bin.000001 4 Format_desc 1 106 Server ver: VERSION, Binlog ver: 4
master-bin.000001 106 Query 1 200 use `test`; insert into t1 select * from t2
select * from t1;
a
1
...
...
@@ -19,6 +20,7 @@ insert into t1 values(1),(1);
reset master;
create table t2(unique(a)) select a from t1;
ERROR 23000: Duplicate entry '1' for key 'a'
show binlog events
from <binlog_start>
;
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
drop table t1;
mysql-test/r/ctype_cp932_binlog_stm.result
View file @
55dd7f8b
...
...
@@ -6,11 +6,11 @@ CREATE TABLE t1(f1 blob);
PREPARE stmt1 FROM 'INSERT INTO t1 VALUES(?)';
SET @var1= x'8300';
EXECUTE stmt1 USING @var1;
SHOW BINLOG EVENTS FROM 105
;
show binlog events from <binlog_start>
;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query
1
# use `test`; CREATE TABLE t1(f1 blob)
master-bin.000001 # User var
1
# @`var1`=_binary 0x8300 COLLATE binary
master-bin.000001 # Query
1
# use `test`; INSERT INTO t1 VALUES(@'var1')
master-bin.000001 # Query
#
# use `test`; CREATE TABLE t1(f1 blob)
master-bin.000001 # User var
#
# @`var1`=_binary 0x8300 COLLATE binary
master-bin.000001 # Query
#
# use `test`; INSERT INTO t1 VALUES(@'var1')
SELECT HEX(f1) FROM t1;
HEX(f1)
8300
...
...
@@ -30,17 +30,17 @@ HEX(s1) HEX(s2) d
466F6F2773206120426172 ED40ED41ED42 47.93
DROP PROCEDURE bug18293|
DROP TABLE t4|
SHOW BINLOG EVENTS FROM 4
09
|
SHOW BINLOG EVENTS FROM 4
10
|
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4
09 Query 1 575
use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
master-bin.000001 4
10 Query 1 576
use `test`; CREATE TABLE t4 (s1 CHAR(50) CHARACTER SET latin1,
s2 CHAR(50) CHARACTER SET cp932,
d DECIMAL(10,2))
master-bin.000001 57
5 Query 1 823
use `test`; CREATE DEFINER=`root`@`localhost` PROCEDURE bug18293 (IN ins1 CHAR(50),
master-bin.000001 57
6 Query 1 824
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 82
3 Query 1 1042
use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 0x466F6F2773206120426172), NAME_CONST('ins2',_cp932 0xED40ED41ED42), NAME_CONST('ind',47.93))
master-bin.000001 104
2 Query 1 1131
use `test`; DROP PROCEDURE bug18293
master-bin.000001 113
1 Query 1 1210
use `test`; DROP TABLE t4
master-bin.000001 82
4 Query 1 1043
use `test`; INSERT INTO t4 VALUES ( NAME_CONST('ins1',_latin1 0x466F6F2773206120426172), NAME_CONST('ins2',_cp932 0xED40ED41ED42), NAME_CONST('ind',47.93))
master-bin.000001 104
3 Query 1 1132
use `test`; DROP PROCEDURE bug18293
master-bin.000001 113
2 Query 1 1211
use `test`; DROP TABLE t4
mysql-test/r/flush_block_commit_notembedded.result
View file @
55dd7f8b
...
...
@@ -5,11 +5,11 @@ insert t1 values (1);
flush tables with read lock;
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 10
5
master-bin.000001 10
6
commit;
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 10
5
master-bin.000001 10
6
unlock tables;
drop table t1;
set autocommit=1;
mysql-test/r/rpl_000015.result
View file @
55dd7f8b
reset master;
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 10
5
master-bin.000001 10
6
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
...
...
@@ -17,7 +17,7 @@ Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File
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
# 127.0.0.1 root MASTER_PORT 7 master-bin.000001 10
5 # # master-bin.000001 Yes Yes 0 0 105
# None 0 No #
# 127.0.0.1 root MASTER_PORT 7 master-bin.000001 10
6 # # master-bin.000001 Yes Yes 0 0 106
# None 0 No #
drop table if exists t1;
create table t1 (n int, PRIMARY KEY(n));
insert into t1 values (10),(45),(90);
...
...
mysql-test/r/rpl_change_master.result
View file @
55dd7f8b
...
...
@@ -13,11 +13,11 @@ insert into t1 values(2);
stop 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
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 # # # master-bin.000001 No No 0 0 19
0
# None 0 No #
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 # # # master-bin.000001 No No 0 0 19
1
# None 0 No #
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
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 # # # master-bin.000001 No No 0 0 19
0
# None 0 No #
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 # # # master-bin.000001 No No 0 0 19
1
# None 0 No #
start slave;
select * from t1;
n
...
...
mysql-test/r/rpl_deadlock_innodb.result
View file @
55dd7f8b
...
...
@@ -80,7 +80,7 @@ Master_SSL_Key
Seconds_Behind_Master #
stop slave;
delete from t3;
change master to master_log_pos=54
7
;
change master to master_log_pos=54
8
;
begin;
select * from t2 for update;
a
...
...
@@ -136,7 +136,7 @@ set @my_max_relay_log_size= @@global.max_relay_log_size;
set global max_relay_log_size=0;
stop slave;
delete from t3;
change master to master_log_pos=54
7
;
change master to master_log_pos=54
8
;
begin;
select * from t2 for update;
a
...
...
mysql-test/r/rpl_flushlog_loop.result
View file @
55dd7f8b
...
...
@@ -24,7 +24,7 @@ Master_User root
Master_Port SLAVE_PORT
Connect_Retry 60
Master_Log_File slave-bin.000001
Read_Master_Log_Pos 21
5
Read_Master_Log_Pos 21
6
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File slave-bin.000001
...
...
@@ -39,7 +39,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 21
5
Exec_Master_Log_Pos 21
6
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
mysql-test/r/rpl_known_bugs_detection.result
View file @
55dd7f8b
...
...
@@ -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 24
5
Exec_Master_Log_Pos 24
6
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -115,7 +115,7 @@ FROM t2
ON DUPLICATE KEY UPDATE
t1.field_3 = t2.field_c'
Skip_Counter 0
Exec_Master_Log_Pos 127
7
Exec_Master_Log_Pos 127
8
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
mysql-test/r/rpl_loaddata.result
View file @
55dd7f8b
...
...
@@ -28,7 +28,7 @@ day id category name
2003-03-22 2416 a bbbbb
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
slave-bin.000001 12
79
slave-bin.000001 12
80
drop table t1;
drop table t2;
drop table t3;
...
...
@@ -39,7 +39,7 @@ 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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 179
6 # # master-bin.000001 Yes Yes # 0 0 1796
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 179
7 # # master-bin.000001 Yes Yes # 0 0 1797
# None 0 No #
set sql_log_bin=0;
delete from t1;
set sql_log_bin=1;
...
...
@@ -49,7 +49,7 @@ 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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 183
1 # # master-bin.000001 No No # 0 0 1831
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 183
2 # # master-bin.000001 No No # 0 0 1832
# None 0 No #
set global sql_slave_skip_counter=1;
start slave;
set sql_log_bin=0;
...
...
mysql-test/r/rpl_loaddata_s.result
View file @
55dd7f8b
...
...
@@ -10,6 +10,6 @@ load data infile '../std_data_ln/rpl_loaddata.dat' into table test.t1;
select count(*) from test.t1;
count(*)
2
show binlog events from
105
;
show binlog events from
<binlog_start>
;
Log_name Pos Event_type Server_id End_log_pos Info
drop table test.t1;
mysql-test/r/rpl_log_pos.result
View file @
55dd7f8b
...
...
@@ -6,37 +6,37 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 10
5
<Binlog_Ignore_DB>
master-bin.000001 10
6
<Binlog_Ignore_DB>
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 10
5 # # master-bin.000001 Yes Yes 0 0 105
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 10
6 # # master-bin.000001 Yes Yes 0 0 106
# None 0 No #
stop slave;
change master to master_log_pos=7
4
;
change master to master_log_pos=7
5
;
start slave;
stop slave;
change master to master_log_pos=7
4
;
change master to master_log_pos=7
5
;
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 7
4 # # master-bin.000001 No No 0 0 74
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 7
5 # # master-bin.000001 No No 0 0 75
# None 0 No #
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 7
4 # # master-bin.000001 No Yes 0 0 74
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 7
5 # # master-bin.000001 No Yes 0 0 75
# None 0 No #
stop slave;
change master to master_log_pos=17
7
;
change master to master_log_pos=17
8
;
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 17
7 # # master-bin.000001 No Yes 0 0 177
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 17
8 # # master-bin.000001 No Yes 0 0 178
# None 0 No #
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000001 10
5
<Binlog_Ignore_DB>
master-bin.000001 10
6
<Binlog_Ignore_DB>
create table if not exists t1 (n int);
drop table if exists t1;
create table t1 (n int);
insert into t1 values (1),(2),(3);
stop slave;
change master to master_log_pos=10
5
;
change master to master_log_pos=10
6
;
start slave;
select * from t1 ORDER BY n;
n
...
...
mysql-test/r/rpl_rbr_to_sbr.result
View file @
55dd7f8b
...
...
@@ -28,7 +28,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 45
3
Read_Master_Log_Pos 45
4
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -43,7 +43,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 45
3
Exec_Master_Log_Pos 45
4
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
mysql-test/r/rpl_rotate_logs.result
View file @
55dd7f8b
...
...
@@ -16,7 +16,7 @@ create table t1 (s text);
insert into t1 values('Could not break slave'),('Tried hard');
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
# 127.0.0.1 root MASTER_PORT 60 master-bin.000001 55
5 # # master-bin.000001 Yes Yes # 0 0 555
# None 0 No #
# 127.0.0.1 root MASTER_PORT 60 master-bin.000001 55
6 # # master-bin.000001 Yes Yes # 0 0 556
# None 0 No #
select * from t1;
s
Could not break slave
...
...
@@ -27,9 +27,9 @@ insert into t2 values (34),(67),(123);
flush logs;
show binary logs;
Log_name File_size
master-bin.000001
599
master-bin.000002 37
0
master-bin.000003 10
5
master-bin.000001
600
master-bin.000002 37
1
master-bin.000003 10
6
create table t3 select * from temp_table;
select * from t3;
a
...
...
@@ -43,21 +43,21 @@ start slave;
purge master logs to 'master-bin.000002';
show master logs;
Log_name File_size
master-bin.000002 37
0
master-bin.000003 41
4
master-bin.000002 37
1
master-bin.000003 41
5
purge binary logs to 'master-bin.000002';
show binary logs;
Log_name File_size
master-bin.000002 37
0
master-bin.000003 41
4
master-bin.000002 37
1
master-bin.000003 41
5
purge master logs before now();
show binary logs;
Log_name File_size
master-bin.000003 41
4
master-bin.000003 41
5
insert into t2 values (65);
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
# 127.0.0.1 root MASTER_PORT 60 master-bin.000003 50
3 # # master-bin.000003 Yes Yes # 0 0 503
# None 0 No #
# 127.0.0.1 root MASTER_PORT 60 master-bin.000003 50
4 # # master-bin.000003 Yes Yes # 0 0 504
# None 0 No #
select * from t2;
m
34
...
...
@@ -74,18 +74,18 @@ count(*)
create table t4 select * from temp_table;
show binary logs;
Log_name File_size
master-bin.000003 419
2
master-bin.000004 419
7
master-bin.000005 20
39
master-bin.000003 419
3
master-bin.000004 419
8
master-bin.000005 20
40
show master status;
File Position Binlog_Do_DB Binlog_Ignore_DB
master-bin.000005 20
39
master-bin.000005 20
40
select * from t4;
a
testing temporary tables part 2
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
# 127.0.0.1 root MASTER_PORT 60 master-bin.000005 20
39 # # master-bin.000005 Yes Yes # 0 0 2039
# None 0 No #
# 127.0.0.1 root MASTER_PORT 60 master-bin.000005 20
40 # # master-bin.000005 Yes Yes # 0 0 2040
# None 0 No #
lock tables t3 read;
select count(*) from t3 where n >= 4;
count(*)
...
...
mysql-test/r/rpl_row_max_relay_size.result
View file @
55dd7f8b
...
...
@@ -30,7 +30,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 5866
7
Read_Master_Log_Pos 5866
8
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -45,7 +45,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 5866
7
Exec_Master_Log_Pos 5866
8
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -73,7 +73,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 5866
7
Read_Master_Log_Pos 5866
8
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -88,7 +88,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 5866
7
Exec_Master_Log_Pos 5866
8
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -116,7 +116,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 5866
7
Read_Master_Log_Pos 5866
8
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -131,7 +131,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 5866
7
Exec_Master_Log_Pos 5866
8
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -197,7 +197,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 5875
3
Read_Master_Log_Pos 5875
4
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -212,7 +212,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 5875
3
Exec_Master_Log_Pos 5875
4
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -236,7 +236,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 588
29
Read_Master_Log_Pos 588
30
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -251,7 +251,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 588
29
Exec_Master_Log_Pos 588
30
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -266,7 +266,7 @@ Seconds_Behind_Master #
flush logs;
show master status;
File master-bin.000002
Position 10
5
Position 10
6
Binlog_Do_DB <Binlog_Ignore_DB>
Binlog_Ignore_DB
set global max_binlog_size= @my_max_binlog_size;
...
...
mysql-test/r/rpl_server_id1.result
View file @
55dd7f8b
...
...
@@ -10,7 +10,7 @@ stop slave;
change master to master_port=SLAVE_PORT;
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
127.0.0.1 root SLAVE_PORT 1 4 slave-relay-bin.000001 4 No No # # 0 0 0 10
5
None 0 No NULL
127.0.0.1 root SLAVE_PORT 1 4 slave-relay-bin.000001 4 No No # # 0 0 0 10
6
None 0 No NULL
start slave;
insert into t1 values (1);
show status like "slave_running";
...
...
mysql-test/r/rpl_server_id2.result
View file @
55dd7f8b
...
...
@@ -10,7 +10,7 @@ stop slave;
change master to master_port=SLAVE_PORT;
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
127.0.0.1 root SLAVE_PORT 1 4 slave-relay-bin.000001 4 No No # 0 0 0 10
5
None 0 No NULL
127.0.0.1 root SLAVE_PORT 1 4 slave-relay-bin.000001 4 No No # 0 0 0 10
6
None 0 No NULL
start slave;
insert into t1 values (1);
select * from t1;
...
...
mysql-test/r/rpl_sp.result
View file @
55dd7f8b
...
...
@@ -381,7 +381,7 @@ return 0;
end|
use mysqltest;
set @a:= mysqltest2.f1();
show binlog events in 'master-bin.000001' from 10
5
;
show binlog events in 'master-bin.000001' from 10
6
;
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
...
...
mysql-test/r/rpl_stm_charset.result
View file @
55dd7f8b
...
...
@@ -103,40 +103,40 @@ a b
1 cp850_general_ci
drop database mysqltest2;
drop database mysqltest3;
show binlog events from
105
;
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 mysqltest2
master-bin.000001 # Query
1
# drop database if exists mysqltest3
master-bin.000001 # Query
1
# create database mysqltest2 character set latin2
master-bin.000001 # Query
1
# create database mysqltest3
master-bin.000001 # Query
1
# drop database mysqltest3
master-bin.000001 # Query
1
# create database mysqltest3
master-bin.000001 # Query
1
# use `mysqltest2`; create table t1 (a int auto_increment primary key, b varchar(100))
master-bin.000001 # Intvar
1
# INSERT_ID=1
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@character_set_server)
master-bin.000001 # Intvar
1
# INSERT_ID=2
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@collation_server)
master-bin.000001 # Intvar
1
# INSERT_ID=3
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@character_set_client)
master-bin.000001 # Intvar
1
# INSERT_ID=4
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@character_set_connection)
master-bin.000001 # Intvar
1
# INSERT_ID=5
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@collation_connection)
master-bin.000001 # Query
1
# use `mysqltest2`; truncate table t1
master-bin.000001 # Intvar
1
# INSERT_ID=1
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@collation_connection)
master-bin.000001 # Intvar
1
# INSERT_ID=2
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(LEAST("Mller","Muffler"))
master-bin.000001 # Intvar
1
# INSERT_ID=3
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(@@collation_connection)
master-bin.000001 # Intvar
1
# INSERT_ID=4
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(LEAST("Mller","Muffler"))
master-bin.000001 # Query
1
# use `mysqltest2`; truncate table t1
master-bin.000001 # Intvar
1
# INSERT_ID=1
master-bin.000001 # User var
1
# @`a`=_cp850 0x4DFC6C6C6572 COLLATE cp850_general_ci
master-bin.000001 # Query
1
# use `mysqltest2`; insert into t1 (b) values(collation(@a))
master-bin.000001 # Query
1
# drop database mysqltest2
master-bin.000001 # Query
1
# drop database mysqltest3
master-bin.000001 # Query
#
# drop database if exists mysqltest2
master-bin.000001 # Query
#
# drop database if exists mysqltest3
master-bin.000001 # Query
#
# create database mysqltest2 character set latin2
master-bin.000001 # Query
#
# create database mysqltest3
master-bin.000001 # Query
#
# drop database mysqltest3
master-bin.000001 # Query
#
# create database mysqltest3
master-bin.000001 # Query
#
# use `mysqltest2`; create table t1 (a int auto_increment primary key, b varchar(100))
master-bin.000001 # Intvar
#
# INSERT_ID=1
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@character_set_server)
master-bin.000001 # Intvar
#
# INSERT_ID=2
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@collation_server)
master-bin.000001 # Intvar
#
# INSERT_ID=3
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@character_set_client)
master-bin.000001 # Intvar
#
# INSERT_ID=4
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@character_set_connection)
master-bin.000001 # Intvar
#
# INSERT_ID=5
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@collation_connection)
master-bin.000001 # Query
#
# use `mysqltest2`; truncate table t1
master-bin.000001 # Intvar
#
# INSERT_ID=1
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@collation_connection)
master-bin.000001 # Intvar
#
# INSERT_ID=2
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(LEAST("Mller","Muffler"))
master-bin.000001 # Intvar
#
# INSERT_ID=3
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(@@collation_connection)
master-bin.000001 # Intvar
#
# INSERT_ID=4
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(LEAST("Mller","Muffler"))
master-bin.000001 # Query
#
# use `mysqltest2`; truncate table t1
master-bin.000001 # Intvar
#
# INSERT_ID=1
master-bin.000001 # User var
#
# @`a`=_cp850 0x4DFC6C6C6572 COLLATE cp850_general_ci
master-bin.000001 # Query
#
# use `mysqltest2`; insert into t1 (b) values(collation(@a))
master-bin.000001 # Query
#
# drop database mysqltest2
master-bin.000001 # Query
#
# drop database mysqltest3
set global character_set_server=latin2;
set global character_set_server=latin1;
set global character_set_server=latin2;
...
...
mysql-test/r/rpl_stm_flsh_tbls.result
View file @
55dd7f8b
...
...
@@ -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 65
5
;
SHOW BINLOG EVENTS FROM 65
6
;
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 65
5
;
SHOW BINLOG EVENTS FROM 65
6
;
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
...
...
mysql-test/r/rpl_stm_log.result
View file @
55dd7f8b
...
...
@@ -26,14 +26,14 @@ master-bin.000001 # Query 1 # use `test`; drop table t1
master-bin.000001 # Query 1 # use `test`; create table t1 (word char(20) not null)ENGINE=MyISAM
master-bin.000001 # Begin_load_query 1 # ;file_id=1;block_len=581
master-bin.000001 # Execute_load_query 1 # use `test`; load data infile '../std_data_ln/words.dat' into table t1 ignore 1 lines ;file_id=1
show binlog events from 10
5
limit 1;
show binlog events from 10
6
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 10
5
limit 2;
show binlog events from 10
6
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 # Intvar 1 # INSERT_ID=1
show binlog events from 10
5
limit 2,1;
show binlog events from 10
6
limit 2,1;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # Query 1 # use `test`; insert into t1 values (NULL)
flush logs;
...
...
@@ -66,13 +66,13 @@ master-bin.000002 # Query 1 # use `test`; create table t2 (n int)ENGINE=MyISAM
master-bin.000002 # Query 1 # use `test`; insert into t2 values (1)
show binary logs;
Log_name File_size
master-bin.000001 134
6
master-bin.000002 39
1
master-bin.000001 134
7
master-bin.000002 39
2
start slave;
show binary logs;
Log_name File_size
slave-bin.000001 144
6
slave-bin.000002 29
2
slave-bin.000001 144
7
slave-bin.000002 29
3
show binlog events in 'slave-bin.000001' from 4;
Log_name Pos Event_type Server_id End_log_pos Info
slave-bin.000001 # Format_desc 2 # Server ver: VERSION, Binlog ver: 4
...
...
@@ -92,7 +92,7 @@ slave-bin.000002 # Query 1 # use `test`; create table t2 (n int)ENGINE=MyISAM
slave-bin.000002 # Query 1 # use `test`; insert into t2 values (1)
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000002 39
1 # # master-bin.000002 Yes Yes # 0 0 391
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000002 39
2 # # master-bin.000002 Yes Yes # 0 0 392
# None 0 No #
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;
...
...
mysql-test/r/rpl_stm_max_relay_size.result
View file @
55dd7f8b
...
...
@@ -28,7 +28,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 729
59
Read_Master_Log_Pos 729
60
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -43,7 +43,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 729
59
Exec_Master_Log_Pos 729
60
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -71,7 +71,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 729
59
Read_Master_Log_Pos 729
60
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -86,7 +86,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 729
59
Exec_Master_Log_Pos 729
60
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -114,7 +114,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 729
59
Read_Master_Log_Pos 729
60
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -129,7 +129,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 729
59
Exec_Master_Log_Pos 729
60
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -195,7 +195,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 7304
5
Read_Master_Log_Pos 7304
6
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -210,7 +210,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 7304
5
Exec_Master_Log_Pos 7304
6
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -234,7 +234,7 @@ Master_User root
Master_Port MASTER_PORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 7312
1
Read_Master_Log_Pos 7312
2
Relay_Log_File #
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -249,7 +249,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 7312
1
Exec_Master_Log_Pos 7312
2
Relay_Log_Space #
Until_Condition None
Until_Log_File
...
...
@@ -264,7 +264,7 @@ Seconds_Behind_Master #
flush logs;
show master status;
File master-bin.000002
Position 10
5
Position 10
6
Binlog_Do_DB <Binlog_Ignore_DB>
Binlog_Ignore_DB
set global max_binlog_size= @my_max_binlog_size;
...
...
mysql-test/r/rpl_stm_multi_query.result
View file @
55dd7f8b
...
...
@@ -19,14 +19,14 @@ n
3
4
5
show binlog events from
105
;
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 mysqltest
master-bin.000001 # Query
1
# create database mysqltest
master-bin.000001 # Query
1
# use `test`; create table mysqltest.t1 ( n int)
master-bin.000001 # Query
1
# use `test`; insert into mysqltest.t1 values(1)
master-bin.000001 # Query
1
# use `test`; insert into mysqltest.t1 values(2)
master-bin.000001 # Query
1
# use `test`; insert into mysqltest.t1 values(3)
master-bin.000001 # Query
1
# use `test`; insert into mysqltest.t1 values(4)
master-bin.000001 # Query
1
# use `test`; insert into mysqltest.t1 values(5)
master-bin.000001 # Query
#
# drop database if exists mysqltest
master-bin.000001 # Query
#
# create database mysqltest
master-bin.000001 # Query
#
# use `test`; create table mysqltest.t1 ( n int)
master-bin.000001 # Query
#
# use `test`; insert into mysqltest.t1 values(1)
master-bin.000001 # Query
#
# use `test`; insert into mysqltest.t1 values(2)
master-bin.000001 # Query
#
# use `test`; insert into mysqltest.t1 values(3)
master-bin.000001 # Query
#
# use `test`; insert into mysqltest.t1 values(4)
master-bin.000001 # Query
#
# use `test`; insert into mysqltest.t1 values(5)
drop database mysqltest;
mysql-test/r/rpl_stm_reset_slave.result
View file @
55dd7f8b
...
...
@@ -6,12 +6,12 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 10
5 # # master-bin.000001 Yes Yes # 0 0 105
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 10
6 # # master-bin.000001 Yes Yes # 0 0 106
# None 0 No #
stop slave;
change master to master_user='test';
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
# 127.0.0.1 test MASTER_PORT 1 master-bin.000001 10
5 # # master-bin.000001 No No # 0 0 105
# None 0 No #
# 127.0.0.1 test MASTER_PORT 1 master-bin.000001 10
6 # # master-bin.000001 No No # 0 0 106
# None 0 No #
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
...
...
@@ -19,7 +19,7 @@ Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File
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
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 10
5 # # master-bin.000001 Yes Yes # 0 0 105
# None 0 No #
# 127.0.0.1 root MASTER_PORT 1 master-bin.000001 10
6 # # master-bin.000001 Yes Yes # 0 0 106
# None 0 No #
stop slave;
reset slave;
start slave;
...
...
mysql-test/r/rpl_stm_until.result
View file @
55dd7f8b
...
...
@@ -26,7 +26,7 @@ Master_User root
Master_Port MASTER_MYPORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 78
3
Read_Master_Log_Pos 78
4
Relay_Log_File slave-relay-bin.000004
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -41,7 +41,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 32
6
Exec_Master_Log_Pos 32
7
Relay_Log_Space #
Until_Condition Master
Until_Log_File master-bin.000001
...
...
@@ -67,7 +67,7 @@ Master_User root
Master_Port MASTER_MYPORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 78
3
Read_Master_Log_Pos 78
4
Relay_Log_File slave-relay-bin.000004
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -82,7 +82,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 32
6
Exec_Master_Log_Pos 32
7
Relay_Log_Space #
Until_Condition Master
Until_Log_File master-no-such-bin.000001
...
...
@@ -106,7 +106,7 @@ Master_User root
Master_Port MASTER_MYPORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 78
3
Read_Master_Log_Pos 78
4
Relay_Log_File slave-relay-bin.000004
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -121,7 +121,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 61
5
Exec_Master_Log_Pos 61
6
Relay_Log_Space #
Until_Condition Relay
Until_Log_File slave-relay-bin.000004
...
...
@@ -143,7 +143,7 @@ Master_User root
Master_Port MASTER_MYPORT
Connect_Retry 1
Master_Log_File master-bin.000001
Read_Master_Log_Pos 78
3
Read_Master_Log_Pos 78
4
Relay_Log_File slave-relay-bin.000004
Relay_Log_Pos #
Relay_Master_Log_File master-bin.000001
...
...
@@ -158,7 +158,7 @@ Replicate_Wild_Ignore_Table
Last_Errno 0
Last_Error
Skip_Counter 0
Exec_Master_Log_Pos 78
3
Exec_Master_Log_Pos 78
4
Relay_Log_Space #
Until_Condition Master
Until_Log_File master-bin.000001
...
...
mysql-test/r/rpl_switch_stm_row_mixed.result
View file @
55dd7f8b
This diff is collapsed.
Click to expand it.
mysql-test/r/rpl_truncate_2myisam.result
View file @
55dd7f8b
...
...
@@ -31,11 +31,11 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
3 Query 1 310
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Query 1 390
use `test`; TRUNCATE TABLE t1
master-bin.000001 39
0 Query 1 466
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
4 Query 1 311
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Query 1 391
use `test`; TRUNCATE TABLE t1
master-bin.000001 39
1 Query 1 467
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=MIXED;
SET GLOBAL BINLOG_FORMAT=MIXED;
...
...
@@ -63,11 +63,11 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
3 Query 1 310
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Query 1 390
use `test`; TRUNCATE TABLE t1
master-bin.000001 39
0 Query 1 466
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
4 Query 1 311
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Query 1 391
use `test`; TRUNCATE TABLE t1
master-bin.000001 39
1 Query 1 467
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=ROW;
SET GLOBAL BINLOG_FORMAT=ROW;
...
...
@@ -95,12 +95,12 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
3 Table_map 1 253
table_id: # (test.t1)
master-bin.000001 25
3 Write_rows 1 300
table_id: # flags: STMT_END_F
master-bin.000001 30
0 Query 1 380
use `test`; TRUNCATE TABLE t1
master-bin.000001 38
0 Query 1 456
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
4 Table_map 1 254
table_id: # (test.t1)
master-bin.000001 25
4 Write_rows 1 301
table_id: # flags: STMT_END_F
master-bin.000001 30
1 Query 1 381
use `test`; TRUNCATE TABLE t1
master-bin.000001 38
1 Query 1 457
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=STATEMENT;
SET GLOBAL BINLOG_FORMAT=STATEMENT;
...
...
@@ -128,11 +128,11 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
3 Query 1 310
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Query 1 387
use `test`; DELETE FROM t1
master-bin.000001 38
7 Query 1 463
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
4 Query 1 311
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Query 1 388
use `test`; DELETE FROM t1
master-bin.000001 38
8 Query 1 464
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=MIXED;
SET GLOBAL BINLOG_FORMAT=MIXED;
...
...
@@ -160,11 +160,11 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
3 Query 1 310
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Query 1 387
use `test`; DELETE FROM t1
master-bin.000001 38
7 Query 1 463
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
4 Query 1 311
use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Query 1 388
use `test`; DELETE FROM t1
master-bin.000001 38
8 Query 1 464
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=ROW;
SET GLOBAL BINLOG_FORMAT=ROW;
...
...
@@ -193,10 +193,10 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
3 Table_map 1 253
table_id: # (test.t1)
master-bin.000001 25
3 Write_rows 1 300
table_id: # flags: STMT_END_F
master-bin.000001 30
0 Table_map 1 340
table_id: # (test.t1)
master-bin.000001 34
0 Delete_rows 1 387
table_id: # flags: STMT_END_F
master-bin.000001 38
7 Query 1 463
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=MyISAM
master-bin.000001 21
4 Table_map 1 254
table_id: # (test.t1)
master-bin.000001 25
4 Write_rows 1 301
table_id: # flags: STMT_END_F
master-bin.000001 30
1 Table_map 1 341
table_id: # (test.t1)
master-bin.000001 34
1 Delete_rows 1 388
table_id: # flags: STMT_END_F
master-bin.000001 38
8 Query 1 464
use `test`; DROP TABLE t1
mysql-test/r/rpl_truncate_3innodb.result
View file @
55dd7f8b
...
...
@@ -31,13 +31,13 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
3
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Xid 1 337
COMMIT /* xid= */
master-bin.000001 33
7
Query 1 80 use `test`; TRUNCATE TABLE t1
master-bin.000001 41
7 Xid 1 444
COMMIT /* xid= */
master-bin.000001 44
4 Query 1 520
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
4
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Xid 1 338
COMMIT /* xid= */
master-bin.000001 33
8
Query 1 80 use `test`; TRUNCATE TABLE t1
master-bin.000001 41
8 Xid 1 445
COMMIT /* xid= */
master-bin.000001 44
5 Query 1 521
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=MIXED;
SET GLOBAL BINLOG_FORMAT=MIXED;
...
...
@@ -65,13 +65,13 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
3
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Xid 1 337
COMMIT /* xid= */
master-bin.000001 33
7
Query 1 80 use `test`; TRUNCATE TABLE t1
master-bin.000001 41
7 Xid 1 444
COMMIT /* xid= */
master-bin.000001 44
4 Query 1 520
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
4
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Xid 1 338
COMMIT /* xid= */
master-bin.000001 33
8
Query 1 80 use `test`; TRUNCATE TABLE t1
master-bin.000001 41
8 Xid 1 445
COMMIT /* xid= */
master-bin.000001 44
5 Query 1 521
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=ROW;
SET GLOBAL BINLOG_FORMAT=ROW;
...
...
@@ -99,14 +99,14 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
3
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 25
3
Write_rows 1 87 table_id: # flags: STMT_END_F
master-bin.000001 30
0 Xid 1 327
COMMIT /* xid= */
master-bin.000001 32
7
Query 1 80 use `test`; TRUNCATE TABLE t1
master-bin.000001 40
7 Xid 1 434
COMMIT /* xid= */
master-bin.000001 43
4 Query 1 510
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
4
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 25
4
Write_rows 1 87 table_id: # flags: STMT_END_F
master-bin.000001 30
1 Xid 1 328
COMMIT /* xid= */
master-bin.000001 32
8
Query 1 80 use `test`; TRUNCATE TABLE t1
master-bin.000001 40
8 Xid 1 435
COMMIT /* xid= */
master-bin.000001 43
5 Query 1 511
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=STATEMENT;
SET GLOBAL BINLOG_FORMAT=STATEMENT;
...
...
@@ -134,13 +134,13 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
3
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Xid 1 337
COMMIT /* xid= */
master-bin.000001 33
7
Query 1 77 use `test`; DELETE FROM t1
master-bin.000001 41
4 Xid 1 441
COMMIT /* xid= */
master-bin.000001 44
1 Query 1 517
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
4
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Xid 1 338
COMMIT /* xid= */
master-bin.000001 33
8
Query 1 77 use `test`; DELETE FROM t1
master-bin.000001 41
5 Xid 1 442
COMMIT /* xid= */
master-bin.000001 44
2 Query 1 518
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=MIXED;
SET GLOBAL BINLOG_FORMAT=MIXED;
...
...
@@ -168,13 +168,13 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
3
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
0 Xid 1 337
COMMIT /* xid= */
master-bin.000001 33
7
Query 1 77 use `test`; DELETE FROM t1
master-bin.000001 41
4 Xid 1 441
COMMIT /* xid= */
master-bin.000001 44
1 Query 1 517
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
4
Query 1 97 use `test`; INSERT INTO t1 VALUES (1,1), (2,2)
master-bin.000001 31
1 Xid 1 338
COMMIT /* xid= */
master-bin.000001 33
8
Query 1 77 use `test`; DELETE FROM t1
master-bin.000001 41
5 Xid 1 442
COMMIT /* xid= */
master-bin.000001 44
2 Query 1 518
use `test`; DROP TABLE t1
**** On Master ****
SET SESSION BINLOG_FORMAT=ROW;
SET GLOBAL BINLOG_FORMAT=ROW;
...
...
@@ -203,12 +203,12 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 213
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
3
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 25
3
Write_rows 1 87 table_id: # flags: STMT_END_F
master-bin.000001 30
0 Xid 1 327
COMMIT /* xid= */
master-bin.000001 32
7
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 36
7
Delete_rows 1 87 table_id: # flags: STMT_END_F
master-bin.000001 41
4 Xid 1 441
COMMIT /* xid= */
master-bin.000001 44
1 Query 1 517
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 214
use `test`; CREATE TABLE t1 (a INT, b LONG) ENGINE=InnoDB
master-bin.000001 21
4
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 25
4
Write_rows 1 87 table_id: # flags: STMT_END_F
master-bin.000001 30
1 Xid 1 328
COMMIT /* xid= */
master-bin.000001 32
8
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 36
8
Delete_rows 1 87 table_id: # flags: STMT_END_F
master-bin.000001 41
5 Xid 1 442
COMMIT /* xid= */
master-bin.000001 44
2 Query 1 518
use `test`; DROP TABLE t1
mysql-test/r/rpl_truncate_7ndb.result
View file @
55dd7f8b
...
...
@@ -29,17 +29,17 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 222
use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 22
2 Query 1 286
BEGIN
master-bin.000001 28
6
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 32
6
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 38
4
Write_rows 1 157 table_id: #
master-bin.000001 44
3
Write_rows 1 195 table_id: #
master-bin.000001 48
1
Write_rows 1 233 table_id: # flags: STMT_END_F
master-bin.000001 5
19 Query 1 584
COMMIT
master-bin.000001 58
4 Query 1 664
use `test`; TRUNCATE TABLE t1
master-bin.000001 66
4 Query 1 740
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 223
use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 22
3 Query 1 287
BEGIN
master-bin.000001 28
7
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 32
7
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 38
5
Write_rows 1 157 table_id: #
master-bin.000001 44
4
Write_rows 1 195 table_id: #
master-bin.000001 48
2
Write_rows 1 233 table_id: # flags: STMT_END_F
master-bin.000001 5
20 Query 1 585
COMMIT
master-bin.000001 58
5 Query 1 665
use `test`; TRUNCATE TABLE t1
master-bin.000001 66
5 Query 1 741
use `test`; DROP TABLE t1
**** On Master ****
CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB;
INSERT INTO t1 VALUES (1,1), (2,2);
...
...
@@ -66,30 +66,30 @@ a b
DROP TABLE t1;
SHOW BINLOG EVENTS;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 10
5
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
5 Query 1 222
use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 22
2 Query 1 286
BEGIN
master-bin.000001 28
6
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 32
6
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 38
4
Write_rows 1 157 table_id: #
master-bin.000001 44
3
Write_rows 1 195 table_id: #
master-bin.000001 48
1
Write_rows 1 233 table_id: # flags: STMT_END_F
master-bin.000001 5
19 Query 1 584
COMMIT
master-bin.000001 58
4 Query 1 664
use `test`; TRUNCATE TABLE t1
master-bin.000001 66
4 Query 1 740
use `test`; DROP TABLE t1
master-bin.000001 74
0 Query 1 857
use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 85
7 Query 1 921
BEGIN
master-bin.000001 92
1
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 96
1
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 10
19
Write_rows 1 157 table_id: #
master-bin.000001 107
8
Write_rows 1 195 table_id: #
master-bin.000001 111
6
Write_rows 1 233 table_id: # flags: STMT_END_F
master-bin.000001 115
4 Query 1 1219
COMMIT
master-bin.000001 12
19 Query 1 1283
BEGIN
master-bin.000001 128
3
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 132
3
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 138
1
Write_rows 1 157 table_id: #
master-bin.000001 144
0
Delete_rows 1 191 table_id: #
master-bin.000001 147
4
Delete_rows 1 225 table_id: # flags: STMT_END_F
master-bin.000001 150
8 Query 1 1573
COMMIT
master-bin.000001 157
3 Query 1 1649
use `test`; DROP TABLE t1
master-bin.000001 4 Format_desc 1 10
6
Server ver: SERVER_VERSION, Binlog ver: 4
master-bin.000001 10
6 Query 1 223
use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 22
3 Query 1 287
BEGIN
master-bin.000001 28
7
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 32
7
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 38
5
Write_rows 1 157 table_id: #
master-bin.000001 44
4
Write_rows 1 195 table_id: #
master-bin.000001 48
2
Write_rows 1 233 table_id: # flags: STMT_END_F
master-bin.000001 5
20 Query 1 585
COMMIT
master-bin.000001 58
5 Query 1 665
use `test`; TRUNCATE TABLE t1
master-bin.000001 66
5 Query 1 741
use `test`; DROP TABLE t1
master-bin.000001 74
1 Query 1 858
use `test`; CREATE TABLE t1 (a INT PRIMARY KEY, b LONG) ENGINE=NDB
master-bin.000001 85
8 Query 1 922
BEGIN
master-bin.000001 92
2
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 96
2
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 10
20
Write_rows 1 157 table_id: #
master-bin.000001 107
9
Write_rows 1 195 table_id: #
master-bin.000001 111
7
Write_rows 1 233 table_id: # flags: STMT_END_F
master-bin.000001 115
5 Query 1 1220
COMMIT
master-bin.000001 12
20 Query 1 1284
BEGIN
master-bin.000001 128
4
Table_map 1 40 table_id: # (test.t1)
master-bin.000001 132
4
Table_map 1 98 table_id: # (mysql.ndb_apply_status)
master-bin.000001 138
2
Write_rows 1 157 table_id: #
master-bin.000001 144
1
Delete_rows 1 191 table_id: #
master-bin.000001 147
5
Delete_rows 1 225 table_id: # flags: STMT_END_F
master-bin.000001 150
9 Query 1 1574
COMMIT
master-bin.000001 157
4 Query 1 1650
use `test`; DROP TABLE t1
mysql-test/r/user_var-binlog.result
View file @
55dd7f8b
...
...
@@ -6,13 +6,13 @@ INSERT INTO t1 VALUES(@`a b`);
set @var1= "';aaa";
SET @var2=char(ascii('a'));
insert into t1 values (@var1),(@var2);
show binlog events from
105
;
show binlog events from
<binlog_start>
;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 # User var
1
# @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
master-bin.000001 # Query
1
# use `test`; INSERT INTO t1 VALUES(@`a b`)
master-bin.000001 # User var
1
# @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
master-bin.000001 # User var
1
# @`var2`=_binary 0x61 COLLATE binary
master-bin.000001 # Query
1
# use `test`; insert into t1 values (@var1),(@var2)
master-bin.000001 # User var
#
# @`a b`=_latin1 0x68656C6C6F COLLATE latin1_swedish_ci
master-bin.000001 # Query
#
# use `test`; INSERT INTO t1 VALUES(@`a b`)
master-bin.000001 # User var
#
# @`var1`=_latin1 0x273B616161 COLLATE latin1_swedish_ci
master-bin.000001 # User var
#
# @`var2`=_binary 0x61 COLLATE binary
master-bin.000001 # Query
#
# use `test`; insert into t1 values (@var1),(@var2)
flush logs;
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment