mariadb/mysql-test/suite/roles/create_and_grant_role.test
2013-10-21 19:57:25 -07:00

21 lines
364 B
Text

source include/not_embedded.inc;
create role r1;
grant r1 to root@localhost;
create user u1;
set role r1;
grant r1 to u1;
--sorted_result
select * from mysql.roles_mapping;
drop user u1;
--sorted_result
select * from mysql.roles_mapping;
--sorted_result
show grants;
drop role r1;
--sorted_result
select * from mysql.roles_mapping;
--sorted_result
show grants;