~ubuntu-branches/ubuntu/natty/mysql-5.1/natty-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 08:30:45 UTC
  • mfrom: (1.4.1)
  • Revision ID: package-import@ubuntu.com-20120222083045-2rd53r4bnyx7qus4
Tags: 5.1.61-0ubuntu0.11.04.1
* SECURITY UPDATE: Update to 5.1.61 to fix multiple security issues
  (LP: #937869)
  - http://www.oracle.com/technetwork/topics/security/cpujan2012-366304.html
  - CVE-2011-2262
  - CVE-2012-0075
  - CVE-2012-0112
  - CVE-2012-0113
  - CVE-2012-0114
  - CVE-2012-0115
  - CVE-2012-0116
  - CVE-2012-0117
  - CVE-2012-0118
  - CVE-2012-0119
  - CVE-2012-0120
  - CVE-2012-0484
  - CVE-2012-0485
  - CVE-2012-0486
  - CVE-2012-0487
  - CVE-2012-0488
  - CVE-2012-0489
  - CVE-2012-0490
  - CVE-2012-0491
  - CVE-2012-0492
  - CVE-2012-0493
  - CVE-2012-0494
  - CVE-2012-0495
  - CVE-2012-0496

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
stop slave;
2
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
3
 
reset master;
4
 
reset slave;
5
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
6
 
start slave;
 
1
include/master-slave.inc
 
2
[connection master]
7
3
delete from mysql.user where user=_binary'rpl_do_grant';
8
4
delete from mysql.db where user=_binary'rpl_do_grant';
9
5
flush privileges;
166
162
DROP FUNCTION upgrade_del_func;
167
163
DROP FUNCTION upgrade_alter_func;
168
164
DROP DATABASE bug42217_db;
 
165
SET SQL_LOG_BIN= 0;
169
166
DROP USER 'create_rout_db'@'localhost';
170
 
stop slave;
171
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
172
 
reset master;
173
 
reset slave;
174
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
175
 
start slave;
 
167
SET SQL_LOG_BIN= 1;
 
168
include/rpl_reset.inc
 
169
USE test;
176
170
######## BUG#49119 #######
177
171
### i) test case from the 'how to repeat section'
178
 
stop slave;
179
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
180
 
reset master;
181
 
reset slave;
182
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
183
 
start slave;
184
172
CREATE TABLE t1(c1 INT);
185
173
CREATE PROCEDURE p1() SELECT * FROM t1 |
186
174
REVOKE EXECUTE ON PROCEDURE p1 FROM 'root'@'localhost';
188
176
DROP TABLE t1;
189
177
DROP PROCEDURE p1;
190
178
### ii) Test case in which REVOKE partially succeeds
191
 
stop slave;
192
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
193
 
reset master;
194
 
reset slave;
195
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
196
 
start slave;
 
179
include/rpl_reset.inc
197
180
CREATE TABLE t1(c1 INT);
198
181
CREATE PROCEDURE p1() SELECT * FROM t1 |
199
182
CREATE USER 'user49119'@'localhost';
246
229
DROP TABLE t1;
247
230
DROP PROCEDURE p1;
248
231
DROP USER 'user49119'@'localhost';
249
 
stop slave;
250
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
251
 
reset master;
252
 
reset slave;
253
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
254
 
start slave;
 
232
include/rpl_reset.inc
255
233
grant all on *.* to foo@"1.2.3.4";
256
234
revoke all privileges, grant option from "foo";
257
235
ERROR HY000: Can't revoke all privileges for one or more of the requested users
259
237
Log_name        Pos     Event_type      Server_id       End_log_pos     Info
260
238
master-bin.000001       #       Query   #       #       use `test`; grant all on *.* to foo@"1.2.3.4"
261
239
master-bin.000001       #       Query   #       #       use `test`; revoke all privileges, grant option from "foo"
 
240
include/check_slave_no_error.inc
262
241
DROP USER foo@"1.2.3.4";
263
242
 
264
243
# Bug#27606 GRANT statement should be replicated with DEFINER information
265
 
stop slave;
266
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
267
 
reset master;
268
 
reset slave;
269
 
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
270
 
start slave;
 
244
include/rpl_reset.inc
271
245
GRANT SELECT, INSERT ON mysql.user TO user_bug27606@localhost;
272
246
SELECT Grantor FROM mysql.tables_priv WHERE User='user_bug27606';
273
247
Grantor
284
258
root@localhost
285
259
DROP USER user_bug27606@localhost;
286
260
"End of test"
 
261
include/rpl_end.inc