~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

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;
 
7
delete from mysql.user where user=_binary'rpl_do_grant';
 
8
delete from mysql.db where user=_binary'rpl_do_grant';
 
9
flush privileges;
 
10
delete from mysql.user where user=_binary'rpl_ignore_grant';
 
11
delete from mysql.db where user=_binary'rpl_ignore_grant';
 
12
flush privileges;
 
13
grant select on *.* to rpl_do_grant@localhost;
 
14
grant drop on test.* to rpl_do_grant@localhost;
 
15
show grants for rpl_do_grant@localhost;
 
16
Grants for rpl_do_grant@localhost
 
17
GRANT SELECT ON *.* TO 'rpl_do_grant'@'localhost'
 
18
GRANT DROP ON `test`.* TO 'rpl_do_grant'@'localhost'
 
19
set password for rpl_do_grant@localhost=password("does it work?");
 
20
select password<>_binary'' from mysql.user where user=_binary'rpl_do_grant';
 
21
password<>_binary''
 
22
1
 
23
update mysql.user set password='' where user='rpl_do_grant';
 
24
flush privileges;
 
25
select password<>'' from mysql.user where user='rpl_do_grant';
 
26
password<>''
 
27
0
 
28
set sql_mode='ANSI_QUOTES';
 
29
set password for rpl_do_grant@localhost=password('does it work?');
 
30
set sql_mode='';
 
31
select password<>'' from mysql.user where user='rpl_do_grant';
 
32
password<>''
 
33
1
 
34
delete from mysql.user where user=_binary'rpl_do_grant';
 
35
delete from mysql.db where user=_binary'rpl_do_grant';
 
36
flush privileges;
 
37
delete from mysql.user where user=_binary'rpl_do_grant';
 
38
delete from mysql.db where user=_binary'rpl_do_grant';
 
39
flush privileges;
 
40
show grants for rpl_do_grant@localhost;
 
41
ERROR 42000: There is no such grant defined for user 'rpl_do_grant' on host 'localhost'
 
42
show grants for rpl_do_grant@localhost;
 
43
ERROR 42000: There is no such grant defined for user 'rpl_do_grant' on host 'localhost'
 
44
create user rpl_do_grant@localhost;
 
45
show grants for rpl_do_grant@localhost;
 
46
Grants for rpl_do_grant@localhost
 
47
GRANT USAGE ON *.* TO 'rpl_do_grant'@'localhost'
 
48
show grants for rpl_do_grant2@localhost;
 
49
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
 
50
show grants for rpl_do_grant@localhost;
 
51
Grants for rpl_do_grant@localhost
 
52
GRANT USAGE ON *.* TO 'rpl_do_grant'@'localhost'
 
53
show grants for rpl_do_grant2@localhost;
 
54
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
 
55
rename user rpl_do_grant@localhost to rpl_do_grant2@localhost;
 
56
show grants for rpl_do_grant2@localhost;
 
57
Grants for rpl_do_grant2@localhost
 
58
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
59
show grants for rpl_do_grant2@localhost;
 
60
Grants for rpl_do_grant2@localhost
 
61
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
62
grant DELETE,INSERT on mysqltest1.* to rpl_do_grant2@localhost;
 
63
show grants for rpl_do_grant2@localhost;
 
64
Grants for rpl_do_grant2@localhost
 
65
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
66
GRANT INSERT, DELETE ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
 
67
show grants for rpl_do_grant2@localhost;
 
68
Grants for rpl_do_grant2@localhost
 
69
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
70
GRANT INSERT, DELETE ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
 
71
revoke DELETE on mysqltest1.* from rpl_do_grant2@localhost;
 
72
show grants for rpl_do_grant2@localhost;
 
73
Grants for rpl_do_grant2@localhost
 
74
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
75
GRANT INSERT ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
 
76
show grants for rpl_do_grant2@localhost;
 
77
Grants for rpl_do_grant2@localhost
 
78
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
79
GRANT INSERT ON `mysqltest1`.* TO 'rpl_do_grant2'@'localhost'
 
80
revoke all privileges, grant option from rpl_do_grant2@localhost;
 
81
show grants for rpl_do_grant2@localhost;
 
82
Grants for rpl_do_grant2@localhost
 
83
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
84
show grants for rpl_do_grant2@localhost;
 
85
Grants for rpl_do_grant2@localhost
 
86
GRANT USAGE ON *.* TO 'rpl_do_grant2'@'localhost'
 
87
drop user rpl_do_grant2@localhost;
 
88
show grants for rpl_do_grant2@localhost;
 
89
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'
 
90
show grants for rpl_do_grant2@localhost;
 
91
ERROR 42000: There is no such grant defined for user 'rpl_do_grant2' on host 'localhost'