~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_rotate_logs.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
drop table if exists t1, t2, t3, t4;
 
2
drop table if exists t1, t2, t3, t4;
 
3
start slave;
 
4
Got one of the listed errors
 
5
start slave;
 
6
ERROR HY000: Could not initialize master info structure; more error messages can be found in the MySQL error log
 
7
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
 
8
ERROR HY000: Could not initialize master info structure; more error messages can be found in the MySQL error log
 
9
reset slave;
 
10
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
 
11
reset master;
 
12
start slave;
 
13
create temporary table temp_table (a char(80) not null);
 
14
insert into temp_table values ("testing temporary tables");
 
15
create table t1 (s text);
 
16
insert into t1 values('Could not break slave'),('Tried hard');
 
17
SHOW SLAVE STATUS;
 
18
Slave_IO_State  #
 
19
Master_Host     127.0.0.1
 
20
Master_User     root
 
21
Master_Port     MASTER_PORT
 
22
Connect_Retry   60
 
23
Master_Log_File master-bin.000001
 
24
Read_Master_Log_Pos     #
 
25
Relay_Log_File  #
 
26
Relay_Log_Pos   #
 
27
Relay_Master_Log_File   master-bin.000001
 
28
Slave_IO_Running        Yes
 
29
Slave_SQL_Running       Yes
 
30
Replicate_Do_DB 
 
31
Replicate_Ignore_DB     
 
32
Replicate_Do_Table      
 
33
Replicate_Ignore_Table  #
 
34
Replicate_Wild_Do_Table 
 
35
Replicate_Wild_Ignore_Table     
 
36
Last_Errno      0
 
37
Last_Error      
 
38
Skip_Counter    0
 
39
Exec_Master_Log_Pos     #
 
40
Relay_Log_Space #
 
41
Until_Condition None
 
42
Until_Log_File  
 
43
Until_Log_Pos   0
 
44
Master_SSL_Allowed      No
 
45
Master_SSL_CA_File      
 
46
Master_SSL_CA_Path      
 
47
Master_SSL_Cert 
 
48
Master_SSL_Cipher       
 
49
Master_SSL_Key  
 
50
Seconds_Behind_Master   #
 
51
Master_SSL_Verify_Server_Cert   No
 
52
Last_IO_Errno   #
 
53
Last_IO_Error   #
 
54
Last_SQL_Errno  0
 
55
Last_SQL_Error  
 
56
select * from t1;
 
57
s
 
58
Could not break slave
 
59
Tried hard
 
60
flush logs;
 
61
create table t2(m int not null auto_increment primary key);
 
62
insert into t2 values (34),(67),(123);
 
63
flush logs;
 
64
show binary logs;
 
65
Log_name        File_size
 
66
master-bin.000001       #
 
67
master-bin.000002       #
 
68
master-bin.000003       #
 
69
create table t3 select * from temp_table;
 
70
select * from t3;
 
71
a
 
72
testing temporary tables
 
73
drop table temp_table, t3;
 
74
insert into t2 values(1234);
 
75
set insert_id=1234;
 
76
insert into t2 values(NULL);
 
77
set global sql_slave_skip_counter=1;
 
78
start slave;
 
79
purge master logs to 'master-bin.000002';
 
80
show master logs;
 
81
Log_name        master-bin.000002
 
82
File_size       #
 
83
Log_name        master-bin.000003
 
84
File_size       #
 
85
purge binary logs to 'master-bin.000002';
 
86
show binary logs;
 
87
Log_name        File_size
 
88
master-bin.000002       #
 
89
master-bin.000003       #
 
90
SELECT @time_for_purge:=DATE_ADD('tmpval', INTERVAL 1 SECOND);
 
91
purge master logs before (@time_for_purge);
 
92
show binary logs;
 
93
Log_name        File_size
 
94
master-bin.000003       #
 
95
insert into t2 values (65);
 
96
SHOW SLAVE STATUS;
 
97
Slave_IO_State  #
 
98
Master_Host     127.0.0.1
 
99
Master_User     root
 
100
Master_Port     MASTER_PORT
 
101
Connect_Retry   60
 
102
Master_Log_File master-bin.000003
 
103
Read_Master_Log_Pos     #
 
104
Relay_Log_File  #
 
105
Relay_Log_Pos   #
 
106
Relay_Master_Log_File   master-bin.000003
 
107
Slave_IO_Running        Yes
 
108
Slave_SQL_Running       Yes
 
109
Replicate_Do_DB 
 
110
Replicate_Ignore_DB     
 
111
Replicate_Do_Table      
 
112
Replicate_Ignore_Table  #
 
113
Replicate_Wild_Do_Table 
 
114
Replicate_Wild_Ignore_Table     
 
115
Last_Errno      0
 
116
Last_Error      
 
117
Skip_Counter    0
 
118
Exec_Master_Log_Pos     #
 
119
Relay_Log_Space #
 
120
Until_Condition None
 
121
Until_Log_File  
 
122
Until_Log_Pos   0
 
123
Master_SSL_Allowed      No
 
124
Master_SSL_CA_File      
 
125
Master_SSL_CA_Path      
 
126
Master_SSL_Cert 
 
127
Master_SSL_Cipher       
 
128
Master_SSL_Key  
 
129
Seconds_Behind_Master   #
 
130
Master_SSL_Verify_Server_Cert   No
 
131
Last_IO_Errno   #
 
132
Last_IO_Error   #
 
133
Last_SQL_Errno  0
 
134
Last_SQL_Error  
 
135
select * from t2;
 
136
m
 
137
34
 
138
65
 
139
67
 
140
123
 
141
1234
 
142
create temporary table temp_table (a char(80) not null);
 
143
insert into temp_table values ("testing temporary tables part 2");
 
144
create table t3 (n int);
 
145
select count(*) from t3 where n >= 4;
 
146
count(*)
 
147
100
 
148
create table t4 select * from temp_table;
 
149
show binary logs;
 
150
Log_name        File_size
 
151
master-bin.000003       #
 
152
master-bin.000004       #
 
153
master-bin.000005       #
 
154
show master status;
 
155
File    Position        Binlog_Do_DB    Binlog_Ignore_DB
 
156
master-bin.000005       #       <Binlog_Do_DB>  <Binlog_Ignore_DB>
 
157
select * from t4;
 
158
a
 
159
testing temporary tables part 2
 
160
SHOW SLAVE STATUS;
 
161
Slave_IO_State  #
 
162
Master_Host     127.0.0.1
 
163
Master_User     root
 
164
Master_Port     MASTER_PORT
 
165
Connect_Retry   60
 
166
Master_Log_File master-bin.000005
 
167
Read_Master_Log_Pos     #
 
168
Relay_Log_File  #
 
169
Relay_Log_Pos   #
 
170
Relay_Master_Log_File   master-bin.000005
 
171
Slave_IO_Running        Yes
 
172
Slave_SQL_Running       Yes
 
173
Replicate_Do_DB 
 
174
Replicate_Ignore_DB     
 
175
Replicate_Do_Table      
 
176
Replicate_Ignore_Table  #
 
177
Replicate_Wild_Do_Table 
 
178
Replicate_Wild_Ignore_Table     
 
179
Last_Errno      0
 
180
Last_Error      
 
181
Skip_Counter    0
 
182
Exec_Master_Log_Pos     #
 
183
Relay_Log_Space #
 
184
Until_Condition None
 
185
Until_Log_File  
 
186
Until_Log_Pos   0
 
187
Master_SSL_Allowed      No
 
188
Master_SSL_CA_File      
 
189
Master_SSL_CA_Path      
 
190
Master_SSL_Cert 
 
191
Master_SSL_Cipher       
 
192
Master_SSL_Key  
 
193
Seconds_Behind_Master   #
 
194
Master_SSL_Verify_Server_Cert   No
 
195
Last_IO_Errno   #
 
196
Last_IO_Error   #
 
197
Last_SQL_Errno  0
 
198
Last_SQL_Error  
 
199
lock tables t3 read;
 
200
select count(*) from t3 where n >= 4;
 
201
count(*)
 
202
100
 
203
unlock tables;
 
204
drop table if exists t1,t2,t3,t4;
 
205
End of 4.1 tests
 
206
show binlog events in 'non existing_binlog_file';
 
207
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
 
208
purge master logs before now();
 
209
show binlog events in '';
 
210
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
 
211
purge master logs before now();
 
212
End of 5.0 tests