mariadb/mysql-test/suite/roles/create_and_grant_role.test

22 lines
364 B
Text
Raw Normal View History

2013-10-18 18:56:28 -07:00
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;