mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-21743 Split up SUPER privilege to smaller privileges
This commit is contained in:
@ -10,9 +10,13 @@ SELECT HEX(@super_acl_100500);
|
||||
SET @all_known_privileges_100500= (1 << 30) - 1;
|
||||
SELECT HEX(@all_known_privileges_100500);
|
||||
|
||||
SET @all_known_privileges_current= (1 << 30) - 1;
|
||||
CREATE USER user1@localhost;
|
||||
GRANT ALL PRIVILEGES ON *.* TO user1@localhost WITH GRANT OPTION;
|
||||
SET @all_known_privileges_current=(SELECT CAST(json_value(Priv, '$.access') AS UNSIGNED) FROM mysql.global_priv WHERE host='localhost' and user='user1');
|
||||
DROP USER user1@localhost;
|
||||
SELECT HEX(@all_known_privileges_current);
|
||||
|
||||
|
||||
CREATE USER bad_access1@localhost;
|
||||
UPDATE
|
||||
mysql.global_priv
|
||||
|
Reference in New Issue
Block a user