2013-10-18 18:56:28 -07:00
|
|
|
source include/not_embedded.inc;
|
|
|
|
|
2013-10-18 09:26:02 -07:00
|
|
|
create role r1;
|
|
|
|
grant r1 to root@localhost;
|
|
|
|
create user u1;
|
|
|
|
set role r1;
|
|
|
|
|
|
|
|
grant r1 to u1;
|
2013-10-18 12:27:07 -07:00
|
|
|
--sorted_result
|
2013-10-18 09:26:02 -07:00
|
|
|
select * from mysql.roles_mapping;
|
|
|
|
|
|
|
|
drop user u1;
|
2013-10-18 12:27:07 -07:00
|
|
|
--sorted_result
|
2013-10-18 09:26:02 -07:00
|
|
|
select * from mysql.roles_mapping;
|
2013-10-18 12:27:07 -07:00
|
|
|
--sorted_result
|
2013-10-18 09:26:02 -07:00
|
|
|
show grants;
|
|
|
|
drop role r1;
|
2013-10-18 12:27:07 -07:00
|
|
|
--sorted_result
|
2013-10-18 09:26:02 -07:00
|
|
|
select * from mysql.roles_mapping;
|
2013-10-18 12:27:07 -07:00
|
|
|
--sorted_result
|
2013-10-18 09:26:02 -07:00
|
|
|
show grants;
|