mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 07:30:02 +00:00
Fixed some tests for pt-show-grants
This commit is contained in:
6
t/pt-show-grants/samples/column-grants-80.txt
Normal file
6
t/pt-show-grants/samples/column-grants-80.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Grants for 'sally'@'%'
|
||||
CREATE USER IF NOT EXISTS 'sally'@'%';
|
||||
ALTER USER 'sally'@'%' IDENTIFIED WITH 'mysql_native_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK PASSWORD HISTORY DEFAULT PASSWORD REUSE INTERVAL DEFAULT;
|
||||
GRANT INSERT (`city`), SELECT (`city_id`) ON `sakila`.`city` TO `sally`@`%`;
|
||||
GRANT SELECT (`DateCreated`, `PaymentStat`, `PckPrice`, `SANumber`) ON `test`.`t` TO `sally`@`%`;
|
||||
GRANT USAGE ON *.* TO `sally`@`%`;
|
6
t/pt-show-grants/samples/column-grants-combined-80.txt
Normal file
6
t/pt-show-grants/samples/column-grants-combined-80.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Grants for 'sally'@'%'
|
||||
CREATE USER IF NOT EXISTS 'sally'@'%';
|
||||
ALTER USER 'sally'@'%' IDENTIFIED WITH 'mysql_native_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK PASSWORD HISTORY DEFAULT PASSWORD REUSE INTERVAL DEFAULT;
|
||||
GRANT INSERT (`city`), SELECT, SELECT (`city_id`) ON `sakila`.`city` TO `sally`@`%`;
|
||||
GRANT SELECT (`DateCreated`, `PaymentStat`, `PckPrice`, `SANumber`) ON `test`.`t` TO `sally`@`%`;
|
||||
GRANT USAGE ON *.* TO `sally`@`%`;
|
7
t/pt-show-grants/samples/column-grants-separate-80.txt
Normal file
7
t/pt-show-grants/samples/column-grants-separate-80.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Grants for 'sally'@'%'
|
||||
CREATE USER IF NOT EXISTS 'sally'@'%';
|
||||
ALTER USER 'sally'@'%' IDENTIFIED WITH 'mysql_native_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK PASSWORD HISTORY DEFAULT PASSWORD REUSE INTERVAL DEFAULT;
|
||||
GRANT INSERT (`city`) ON `sakila`.`city` TO `sally`@`%`;
|
||||
GRANT SELECT (`DateCreated`, `PaymentStat`, `PckPrice`, `SANumber`) ON `test`.`t` TO `sally`@`%`;
|
||||
GRANT SELECT (`city_id`) ON `sakila`.`city` TO `sally`@`%`;
|
||||
GRANT USAGE ON *.* TO `sally`@`%`;
|
@@ -0,0 +1,12 @@
|
||||
-- Revoke statements for 'sally'@'%'
|
||||
REVOKE INSERT (`city`) ON `sakila`.`city` FROM `sally`@`%`;
|
||||
REVOKE SELECT (`DateCreated`, `PaymentStat`, `PckPrice`, `SANumber`) ON `test`.`t` FROM `sally`@`%`;
|
||||
REVOKE SELECT (`city_id`) ON `sakila`.`city` FROM `sally`@`%`;
|
||||
REVOKE USAGE ON *.* FROM `sally`@`%`;
|
||||
-- Grants for 'sally'@'%'
|
||||
CREATE USER IF NOT EXISTS 'sally'@'%';
|
||||
ALTER USER 'sally'@'%' IDENTIFIED WITH 'mysql_native_password' REQUIRE NONE PASSWORD EXPIRE DEFAULT ACCOUNT UNLOCK PASSWORD HISTORY DEFAULT PASSWORD REUSE INTERVAL DEFAULT;
|
||||
GRANT INSERT (`city`) ON `sakila`.`city` TO `sally`@`%`;
|
||||
GRANT SELECT (`DateCreated`, `PaymentStat`, `PckPrice`, `SANumber`) ON `test`.`t` TO `sally`@`%`;
|
||||
GRANT SELECT (`city_id`) ON `sakila`.`city` TO `sally`@`%`;
|
||||
GRANT USAGE ON *.* TO `sally`@`%`;
|
Reference in New Issue
Block a user