mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.3' into 10.4
This commit is contained in:
@ -349,7 +349,7 @@ PRIVILEGE_TYPE UPDATE
|
||||
IS_GRANTABLE NO
|
||||
SELECT host,user,json_detailed(priv) FROM mysql.global_priv
|
||||
WHERE user LIKE 'testuser%' ORDER BY host, user;
|
||||
ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table 'global_priv'
|
||||
ERROR 42000: SELECT command denied to user 'testuser2'@'localhost' for table `mysql`.`global_priv`
|
||||
SHOW GRANTS;
|
||||
Grants for testuser2@localhost
|
||||
GRANT INSERT, UPDATE ON *.* TO `testuser2`@`localhost`
|
||||
@ -363,7 +363,7 @@ PRIVILEGE_TYPE USAGE
|
||||
IS_GRANTABLE NO
|
||||
SELECT host,user,json_detailed(priv) FROM mysql.global_priv
|
||||
WHERE user LIKE 'testuser%' ORDER BY host, user;
|
||||
ERROR 42000: SELECT command denied to user 'testuser3'@'localhost' for table 'global_priv'
|
||||
ERROR 42000: SELECT command denied to user 'testuser3'@'localhost' for table `mysql`.`global_priv`
|
||||
SHOW GRANTS;
|
||||
Grants for testuser3@localhost
|
||||
GRANT USAGE ON *.* TO `testuser3`@`localhost`
|
||||
@ -426,12 +426,12 @@ PRIVILEGE_TYPE USAGE
|
||||
IS_GRANTABLE NO
|
||||
SELECT host,user,json_detailed(priv) FROM mysql.global_priv
|
||||
WHERE user LIKE 'testuser%' ORDER BY host, user;
|
||||
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 'global_priv'
|
||||
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `mysql`.`global_priv`
|
||||
SHOW GRANTS;
|
||||
Grants for testuser1@localhost
|
||||
GRANT USAGE ON *.* TO `testuser1`@`localhost`
|
||||
CREATE TABLE db_datadict.tb_55 ( c1 TEXT );
|
||||
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table 'tb_55'
|
||||
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table `db_datadict`.`tb_55`
|
||||
SELECT * FROM information_schema.user_privileges
|
||||
WHERE grantee LIKE '''testuser%'''
|
||||
ORDER BY grantee, table_catalog, privilege_type;
|
||||
@ -441,12 +441,12 @@ PRIVILEGE_TYPE USAGE
|
||||
IS_GRANTABLE NO
|
||||
SELECT host,user,json_detailed(priv) FROM mysql.global_priv
|
||||
WHERE user LIKE 'testuser%' ORDER BY host, user;
|
||||
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 'global_priv'
|
||||
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `mysql`.`global_priv`
|
||||
SHOW GRANTS;
|
||||
Grants for testuser1@localhost
|
||||
GRANT USAGE ON *.* TO `testuser1`@`localhost`
|
||||
CREATE TABLE db_datadict.tb_66 ( c1 TEXT );
|
||||
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table 'tb_66'
|
||||
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table `db_datadict`.`tb_66`
|
||||
|
||||
# Add ALL on db_datadict.* (and select on mysql.global_priv) to testuser1;
|
||||
connection default;
|
||||
@ -537,7 +537,7 @@ GRANT USAGE ON *.* TO `testuser1`@`localhost`
|
||||
GRANT ALL PRIVILEGES ON `db_datadict`.* TO `testuser1`@`localhost` WITH GRANT OPTION
|
||||
GRANT SELECT ON `mysql`.`global_priv` TO `testuser1`@`localhost`
|
||||
CREATE TABLE db_datadict.tb_56 ( c1 TEXT );
|
||||
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table 'tb_56'
|
||||
ERROR 42000: CREATE command denied to user 'testuser1'@'localhost' for table `db_datadict`.`tb_56`
|
||||
USE db_datadict;
|
||||
SELECT * FROM information_schema.user_privileges
|
||||
WHERE grantee LIKE '''testuser%'''
|
||||
@ -638,7 +638,7 @@ PRIVILEGE_TYPE USAGE
|
||||
IS_GRANTABLE NO
|
||||
SELECT host,user,json_detailed(priv) FROM mysql.global_priv
|
||||
WHERE user LIKE 'testuser%' ORDER BY host, user;
|
||||
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table 'global_priv'
|
||||
ERROR 42000: SELECT command denied to user 'testuser1'@'localhost' for table `mysql`.`global_priv`
|
||||
SHOW GRANTS;
|
||||
Grants for testuser1@localhost
|
||||
GRANT USAGE ON *.* TO `testuser1`@`localhost`
|
||||
|
Reference in New Issue
Block a user