mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
merge with 4.0.15
This commit is contained in:
@ -100,6 +100,26 @@ GRANT SELECT, REFERENCES, REFERENCES (a) ON `test`.`t1` TO 'mysqltest_1'@'localh
|
||||
select table_priv,column_priv from mysql.tables_priv where user="mysqltest_1";
|
||||
table_priv column_priv
|
||||
Select,References References
|
||||
grant all on test.* to user1@localhost with grant option;
|
||||
revoke all on test.* from user1@localhost;
|
||||
show grants for user1@localhost;
|
||||
Grants for user1@localhost
|
||||
GRANT USAGE ON *.* TO 'user1'@'localhost'
|
||||
GRANT USAGE ON `test`.* TO 'user1'@'localhost' WITH GRANT OPTION
|
||||
revoke grant option on test.* from user1@localhost;
|
||||
show grants for user1@localhost;
|
||||
Grants for user1@localhost
|
||||
GRANT USAGE ON *.* TO 'user1'@'localhost'
|
||||
grant all on test.t1 to user2@localhost with grant option;
|
||||
revoke all on test.t1 from user2@localhost;
|
||||
show grants for user2@localhost;
|
||||
Grants for user2@localhost
|
||||
GRANT USAGE ON *.* TO 'user2'@'localhost'
|
||||
GRANT USAGE ON `test`.`t1` TO 'user2'@'localhost' WITH GRANT OPTION
|
||||
revoke grant option on test.t1 from user2@localhost;
|
||||
show grants for user2@localhost;
|
||||
Grants for user2@localhost
|
||||
GRANT USAGE ON *.* TO 'user2'@'localhost'
|
||||
delete from mysql.user where user='mysqltest_1';
|
||||
delete from mysql.db where user='mysqltest_1';
|
||||
delete from mysql.tables_priv where user='mysqltest_1';
|
||||
|
Reference in New Issue
Block a user