rpl_log_pos.result 2.25 KB
Newer Older
1
stop slave;
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
unknown's avatar
unknown committed
3 4 5
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
6
start slave;
unknown's avatar
unknown committed
7
show master status;
8
File	Position	Binlog_Do_DB	Binlog_Ignore_DB
unknown's avatar
unknown committed
9
master-bin.000001	#	<Binlog_Do_DB>	<Binlog_Ignore_DB>
10
include/stop_slave.inc
unknown's avatar
unknown committed
11
change master to master_log_pos=75;
12
SHOW SLAVE STATUS;
unknown's avatar
unknown committed
13 14 15 16 17 18
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
unknown's avatar
unknown committed
19
Read_Master_Log_Pos	#
unknown's avatar
unknown committed
20 21 22 23 24 25 26 27
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	
28
Replicate_Ignore_Table	#
unknown's avatar
unknown committed
29 30 31 32 33
Replicate_Wild_Do_Table	
Replicate_Wild_Ignore_Table	
Last_Errno	0
Last_Error	
Skip_Counter	0
unknown's avatar
unknown committed
34
Exec_Master_Log_Pos	#
unknown's avatar
unknown committed
35 36 37 38 39 40 41 42 43 44 45 46
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
47 48 49 50
Last_IO_Errno	#
Last_IO_Error	#
Last_SQL_Errno	0
Last_SQL_Error	
51
start slave;
52
include/stop_slave.inc
53
SHOW SLAVE STATUS;
unknown's avatar
unknown committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
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	75
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	
69
Replicate_Ignore_Table	#
unknown's avatar
unknown committed
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
Replicate_Wild_Do_Table	
Replicate_Wild_Ignore_Table	
Last_Errno	0
Last_Error	
Skip_Counter	0
Exec_Master_Log_Pos	75
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
88 89 90 91
Last_IO_Errno	#
Last_IO_Error	#
Last_SQL_Errno	0
Last_SQL_Error	
unknown's avatar
unknown committed
92
show master status;
93
File	Position	Binlog_Do_DB	Binlog_Ignore_DB
unknown's avatar
unknown committed
94
master-bin.000001	#	<Binlog_Do_DB>	<Binlog_Ignore_DB>
95 96 97 98
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);
unknown's avatar
unknown committed
99
change master to master_log_pos=4;
100
start slave;
101
select * from t1 ORDER BY n;
102 103 104 105
n
1
2
3
106
drop table t1;
unknown's avatar
unknown committed
107
End of 5.0 tests