mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-20076: SHOW GRANTS does not quote role names properly
Quotes added to output.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
|
||||
GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION
|
||||
GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
|
||||
create user 'pfs_user_5'@localhost;
|
||||
grant usage on *.* to 'pfs_user_5'@localhost with GRANT OPTION;
|
||||
|
@ -1,6 +1,6 @@
|
||||
show grants;
|
||||
Grants for root@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION
|
||||
GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION
|
||||
GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION
|
||||
create user 'pfs_user_1'@localhost;
|
||||
create user 'pfs_user_2'@localhost;
|
||||
|
@ -12,8 +12,8 @@ select @@global.read_only;
|
||||
0
|
||||
show grants;
|
||||
Grants for pfsuser@localhost
|
||||
GRANT USAGE ON *.* TO 'pfsuser'@'localhost'
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO 'pfsuser'@'localhost'
|
||||
GRANT USAGE ON *.* TO `pfsuser`@`localhost`
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO `pfsuser`@`localhost`
|
||||
select * from performance_schema.setup_instruments;
|
||||
update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
@ -25,8 +25,8 @@ select @@global.read_only;
|
||||
1
|
||||
show grants;
|
||||
Grants for pfsuser@localhost
|
||||
GRANT USAGE ON *.* TO 'pfsuser'@'localhost'
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO 'pfsuser'@'localhost'
|
||||
GRANT USAGE ON *.* TO `pfsuser`@`localhost`
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO `pfsuser`@`localhost`
|
||||
select * from performance_schema.setup_instruments;
|
||||
update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
@ -40,8 +40,8 @@ select @@global.read_only;
|
||||
1
|
||||
show grants;
|
||||
Grants for pfsuser@localhost
|
||||
GRANT SUPER ON *.* TO 'pfsuser'@'localhost'
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO 'pfsuser'@'localhost'
|
||||
GRANT SUPER ON *.* TO `pfsuser`@`localhost`
|
||||
GRANT SELECT, UPDATE ON `performance_schema`.* TO `pfsuser`@`localhost`
|
||||
select * from performance_schema.setup_instruments;
|
||||
update performance_schema.setup_instruments set enabled='NO';
|
||||
update performance_schema.setup_instruments set enabled='YES';
|
||||
|
Reference in New Issue
Block a user