Files
percona-toolkit/t/pt-show-grants/samples/column-grants-separate-revoke-80.txt
Sveta Smirnova cd6eef7c28 PT-2152 - Fix tests for pt-show-grants (#598)
Updated results for version 8.0
2023-02-14 18:28:07 +03:00

13 lines
820 B
Plaintext

-- 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 PASSWORD REQUIRE CURRENT 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`@`%`;