mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Show grants now correctly prints procedure privileges.
This commit is contained in:
committed by
Sergei Golubchik
parent
d83bbc1ffc
commit
6f9d26f09f
@ -42,6 +42,7 @@ GRANT SELECT ON *.* TO 'test_role2'
|
||||
GRANT USAGE ON *.* TO 'test_role1'
|
||||
GRANT USAGE ON *.* TO 'test_user'@'localhost'
|
||||
GRANT test_role1 TO 'test_user'@'localhost'
|
||||
GRANT test_role2 TO 'test_role1'
|
||||
select * from mysql.roles_mapping where HostFk='';
|
||||
HostFk UserFk RoleFk
|
||||
test_role1 test_role2
|
||||
@ -51,6 +52,7 @@ GRANT SELECT ON *.* TO 'test_role2'
|
||||
GRANT USAGE ON *.* TO 'test_role1'
|
||||
GRANT USAGE ON *.* TO 'test_user'@'localhost'
|
||||
GRANT test_role1 TO 'test_user'@'localhost'
|
||||
GRANT test_role2 TO 'test_role1'
|
||||
set role none;
|
||||
show grants;
|
||||
Grants for test_user@localhost
|
||||
@ -81,6 +83,7 @@ GRANT SELECT ON *.* TO 'test_role2'
|
||||
GRANT USAGE ON *.* TO 'test_role1'
|
||||
GRANT USAGE ON *.* TO 'test_user'@'localhost'
|
||||
GRANT test_role1 TO 'test_user'@'localhost'
|
||||
GRANT test_role2 TO 'test_role1'
|
||||
select * from mysql.roles_mapping where HostFk='';
|
||||
HostFk UserFk RoleFk
|
||||
test_role1 test_role2
|
||||
@ -90,6 +93,7 @@ GRANT SELECT ON *.* TO 'test_role2'
|
||||
GRANT USAGE ON *.* TO 'test_role1'
|
||||
GRANT USAGE ON *.* TO 'test_user'@'localhost'
|
||||
GRANT test_role1 TO 'test_user'@'localhost'
|
||||
GRANT test_role2 TO 'test_role1'
|
||||
set role none;
|
||||
show grants;
|
||||
Grants for test_user@localhost
|
||||
|
Reference in New Issue
Block a user