mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.5 into 10.6
This commit is contained in:
@ -248,7 +248,7 @@ GRANT select (a), update (a),insert(a), references(a) on t1 to mysqltest_1@local
|
||||
show grants for mysqltest_1@localhost;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
|
||||
GRANT SELECT, SELECT (a), INSERT, INSERT (a), UPDATE, UPDATE (a), REFERENCES (a) ON `test`.`t1` TO `mysqltest_1`@`localhost`
|
||||
GRANT SELECT, SELECT (`a`), INSERT, INSERT (`a`), UPDATE, UPDATE (`a`), REFERENCES (`a`) ON `test`.`t1` TO `mysqltest_1`@`localhost`
|
||||
select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
|
||||
table_priv column_priv
|
||||
Select,Insert,Update Select,Insert,Update,References
|
||||
@ -256,12 +256,12 @@ REVOKE select (a), update on t1 from mysqltest_1@localhost;
|
||||
show grants for mysqltest_1@localhost;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
|
||||
GRANT SELECT, INSERT, INSERT (a), REFERENCES (a) ON `test`.`t1` TO `mysqltest_1`@`localhost`
|
||||
GRANT SELECT, INSERT, INSERT (`a`), REFERENCES (`a`) ON `test`.`t1` TO `mysqltest_1`@`localhost`
|
||||
REVOKE select,update,insert,insert (a) on t1 from mysqltest_1@localhost;
|
||||
show grants for mysqltest_1@localhost;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT USAGE ON *.* TO `mysqltest_1`@`localhost`
|
||||
GRANT REFERENCES (a) ON `test`.`t1` TO `mysqltest_1`@`localhost`
|
||||
GRANT REFERENCES (`a`) ON `test`.`t1` TO `mysqltest_1`@`localhost`
|
||||
GRANT select,references on t1 to mysqltest_1@localhost;
|
||||
select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
|
||||
table_priv column_priv
|
||||
@ -336,13 +336,13 @@ show grants for drop_user@localhost;
|
||||
Grants for drop_user@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO `drop_user`@`localhost` WITH GRANT OPTION
|
||||
GRANT ALL PRIVILEGES ON `test`.* TO `drop_user`@`localhost` WITH GRANT OPTION
|
||||
GRANT SELECT (a) ON `test`.`t1` TO `drop_user`@`localhost`
|
||||
GRANT SELECT (`a`) ON `test`.`t1` TO `drop_user`@`localhost`
|
||||
set sql_mode=ansi_quotes;
|
||||
show grants for drop_user@localhost;
|
||||
Grants for drop_user@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO "drop_user"@"localhost" WITH GRANT OPTION
|
||||
GRANT ALL PRIVILEGES ON "test".* TO "drop_user"@"localhost" WITH GRANT OPTION
|
||||
GRANT SELECT (a) ON "test"."t1" TO "drop_user"@"localhost"
|
||||
GRANT SELECT ("a") ON "test"."t1" TO "drop_user"@"localhost"
|
||||
set sql_mode=default;
|
||||
set sql_quote_show_create=0;
|
||||
show grants for drop_user@localhost;
|
||||
@ -361,13 +361,13 @@ show grants for drop_user@localhost;
|
||||
Grants for drop_user@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO "drop_user"@"localhost" WITH GRANT OPTION
|
||||
GRANT ALL PRIVILEGES ON "test".* TO "drop_user"@"localhost" WITH GRANT OPTION
|
||||
GRANT SELECT (a) ON "test"."t1" TO "drop_user"@"localhost"
|
||||
GRANT SELECT ("a") ON "test"."t1" TO "drop_user"@"localhost"
|
||||
set sql_mode="";
|
||||
show grants for drop_user@localhost;
|
||||
Grants for drop_user@localhost
|
||||
GRANT ALL PRIVILEGES ON *.* TO `drop_user`@`localhost` WITH GRANT OPTION
|
||||
GRANT ALL PRIVILEGES ON `test`.* TO `drop_user`@`localhost` WITH GRANT OPTION
|
||||
GRANT SELECT (a) ON `test`.`t1` TO `drop_user`@`localhost`
|
||||
GRANT SELECT (`a`) ON `test`.`t1` TO `drop_user`@`localhost`
|
||||
revoke all privileges, grant option from drop_user@localhost;
|
||||
show grants for drop_user@localhost;
|
||||
Grants for drop_user@localhost
|
||||
@ -415,7 +415,7 @@ GRANT SELECT (
|
||||
SHOW GRANTS FOR <20><><EFBFBD><EFBFBD>@localhost;
|
||||
Grants for <20><><EFBFBD><EFBFBD>@localhost
|
||||
GRANT USAGE ON *.* TO `<60><><EFBFBD><EFBFBD>`@`localhost`
|
||||
GRANT SELECT (<28><><EFBFBD>) ON `<60><>`.`<60><><EFBFBD>` TO `<60><><EFBFBD><EFBFBD>`@`localhost`
|
||||
GRANT SELECT (`<EFBFBD><EFBFBD><EFBFBD>`) ON `<60><>`.`<60><><EFBFBD>` TO `<60><><EFBFBD><EFBFBD>`@`localhost`
|
||||
REVOKE SELECT (<28><><EFBFBD>) ON <20><>.<2E><><EFBFBD> FROM <20><><EFBFBD><EFBFBD>@localhost;
|
||||
DROP USER <20><><EFBFBD><EFBFBD>@localhost;
|
||||
DROP DATABASE <20><>;
|
||||
@ -492,7 +492,7 @@ grant insert(b), insert(c), insert(d), insert(a) on t1 to grant_user@localhost;
|
||||
show grants for grant_user@localhost;
|
||||
Grants for grant_user@localhost
|
||||
GRANT USAGE ON *.* TO `grant_user`@`localhost`
|
||||
GRANT INSERT (a, d, c, b) ON `test`.`t1` TO `grant_user`@`localhost`
|
||||
GRANT INSERT (`a`, `d`, `c`, `b`) ON `test`.`t1` TO `grant_user`@`localhost`
|
||||
select Host,Db,User,Table_name,Column_name,Column_priv from mysql.columns_priv order by Column_name;
|
||||
Host Db User Table_name Column_name Column_priv
|
||||
localhost test grant_user t1 a Insert
|
||||
@ -913,20 +913,20 @@ grant update (a) on t1 to mysqltest_8;
|
||||
show grants for mysqltest_8@'';
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
show grants for mysqltest_8;
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
flush privileges;
|
||||
show grants for mysqltest_8@'';
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
show grants for mysqltest_8;
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
select * from information_schema.column_privileges;
|
||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
||||
'mysqltest_8'@'%' def test t1 a UPDATE NO
|
||||
@ -1009,12 +1009,12 @@ show grants for mysqltest_8@'';
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
show grants for mysqltest_8;
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
select * from information_schema.user_privileges
|
||||
where grantee like "'mysqltest_8'%";
|
||||
GRANTEE TABLE_CATALOG PRIVILEGE_TYPE IS_GRANTABLE
|
||||
@ -1030,12 +1030,12 @@ show grants for mysqltest_8@'';
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
show grants for mysqltest_8;
|
||||
Grants for mysqltest_8@%
|
||||
GRANT USAGE ON *.* TO `mysqltest_8`@`%`
|
||||
GRANT ALL PRIVILEGES ON `mysqltest`.* TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (a) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
GRANT UPDATE, UPDATE (`a`) ON `test`.`t1` TO `mysqltest_8`@`%`
|
||||
drop user mysqltest_8@'';
|
||||
show grants for mysqltest_8@'';
|
||||
ERROR 42000: There is no such grant defined for user 'mysqltest_8' on host '%'
|
||||
|
Reference in New Issue
Block a user