📄 grant.res
字号:
delete from user where user='grant_user' or user='grant_user2'delete from db where user='grant_user'delete from tables_privdelete from columns_privlock tables mysql.user writeflush privilegesunlock tablesdrop database grant_testcreate database grant_testConnecting grant_userError on connect: Access denied for user: ''@'localhost' to database 'grant_test'grant select(user) on mysql.user to grant_user@localhostrevoke select(user) on mysql.user from grant_user@localhostgrant select on *.* to grant_user@localhostset password FOR grant_user2@localhost = password('test')Error in execute: Can't find any matching row in the user tableset password FOR grant_user=password('test')Connecting grant_userError on connect: Access denied for user: 'grant_user'@'localhost' (Using password: NO)set password FOR grant_user=''Connecting grant_userselect * from mysql.user where user = 'grant_user'localhost grant_user Y N N N N N N N N N N N N N N N N N N N N 0 0 0select * from mysql.db where user = 'grant_user'grant select on *.* to grant_user@localhost,grant_user@localhostshow grants for grant_user@localhostGRANT SELECT ON *.* TO 'grant_user'@'localhost'Connecting grant_userinsert into mysql.user (host,user) values ('error','grant_user')Error in execute: insert command denied to user: 'grant_user'@'localhost' for table 'user'update mysql.user set host='error' WHERE user='grant_user'Error in execute: update command denied to user: 'grant_user'@'localhost' for table 'user'create table grant_test.test (a int,b int)Error in execute: create command denied to user: 'grant_user'@'localhost' for table 'test'grant select on *.* to grant_user2@localhostError in execute: Access denied for user: 'grant_user'@'localhost' (Using password: NO)revoke select on grant_test.test from grant_user@opt_hostError in execute: There is no such grant defined for user 'grant_user' on host 'opt_host'revoke select on grant_test.* from grant_user@opt_hostError in execute: There is no such grant defined for user 'grant_user' on host 'opt_host'revoke select on *.* from grant_userError in execute: There is no such grant defined for user 'grant_user' on host '%'grant select on grant_test.not_exists to grant_userError in execute: Table 'grant_test.not_exists' doesn't existgrant FILE on grant_test.test to grant_userError in execute: Illegal GRANT/REVOKE command. Please consult the manual which privileges can be usedgrant select on *.* to wrong___________user_nameError in execute: The host or user argument to GRANT is too longgrant select on grant_test.* to wrong___________user_nameError in execute: The host or user argument to GRANT is too longConnecting grant_usergrant select on grant_test.test to grant_user with grant optionError in execute: grant command denied to user: 'grant_user'@'localhost' for table 'test'set password FOR ''@''=''Error in execute: Can't find any matching row in the user tableset password FOR root@localhost = password('test')Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'mysql'revoke select on *.* from grant_user@localhostgrant create,update on *.* to grant_user@localhostConnecting grant_userflush privilegescreate table grant_test.test (a int,b int)update grant_test.test set b=b+1 where a > 0Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test'show grants for grant_user@localhostGRANT UPDATE, CREATE ON *.* TO 'grant_user'@'localhost'revoke update on *.* from grant_user@localhostConnecting grant_usergrant select(c) on grant_test.test to grant_user@localhostError in execute: Unknown column 'c' in 'test'revoke select(c) on grant_test.test from grant_user@localhostError in execute: There is no such grant defined for user 'grant_user' on host 'localhost' on table 'test'grant select on grant_test.test to wrong___________user_nameError in execute: The host or user argument to GRANT is too longINSERT INTO grant_test.test values (2,0)Error in execute: insert command denied to user: 'grant_user'@'localhost' for table 'test'grant ALL PRIVILEGES on *.* to grant_user@localhostREVOKE INSERT on *.* from grant_user@localhostConnecting grant_userINSERT INTO grant_test.test values (1,0)Error in execute: insert command denied to user: 'grant_user'@'localhost' for table 'test'grant INSERT on *.* to grant_user@localhostConnecting grant_userINSERT INTO grant_test.test values (2,0)select count(*) from grant_test.test1revoke SELECT on *.* from grant_user@localhostConnecting grant_userselect count(*) from grant_test.testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'INSERT INTO grant_test.test values (3,0)grant SELECT on *.* to grant_user@localhostConnecting grant_userselect count(*) from grant_test.test2revoke ALL PRIVILEGES on *.* from grant_user@localhostConnecting grant_userError on connect: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'delete from user where user='grant_user'flush privilegesdelete from user where user='grant_user'flush privilegesgrant select on grant_test.* to grant_user@localhostselect * from mysql.user where user = 'grant_user'localhost grant_user N N N N N N N N N N N N N N N N N N N N N 0 0 0select * from mysql.db where user = 'grant_user'localhost grant_test grant_user Y N N N N N N N N N N NConnecting grant_userselect count(*) from grant_test.test2select * from mysql.user where user = 'grant_user'Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'mysql'insert into grant_test.test values (4,0)Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'update grant_test.test set a=1Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'delete from grant_test.testError in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'create table grant_test.test2 (a int)Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'ALTER TABLE grant_test.test add c intError in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'CREATE INDEX dummy ON grant_test.test (a)Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'drop table grant_test.testError in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'grant ALL PRIVILEGES on grant_test.* to grant_user2@localhostError in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'grant ALL PRIVILEGES on grant_test.* to grant_user@localhost WITH GRANT OPTIONConnecting grant_userinsert into grant_test.test values (5,0)REVOKE ALL PRIVILEGES on * from grant_user@localhostError in execute: There is no such grant defined for user 'grant_user' on host 'localhost'REVOKE ALL PRIVILEGES on *.* from grant_user@localhostREVOKE ALL PRIVILEGES on grant_test.* from grant_user@localhostREVOKE ALL PRIVILEGES on grant_test.* from grant_user@localhostConnecting grant_userinsert into grant_test.test values (6,0)Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'REVOKE GRANT OPTION on grant_test.* from grant_user@localhostConnecting grant_userError on connect: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'grant ALL PRIVILEGES on grant_test.* to grant_user@localhostConnecting grant_userselect * from mysql.user where user = 'grant_user'Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'mysql'insert into grant_test.test values (7,0)update grant_test.test set a=3 where a=2delete from grant_test.test where a=3create table grant_test.test2 (a int not null)alter table grant_test.test2 add b intcreate index dummy on grant_test.test2 (a)update test,test2 SET test.a=test2.a where test.a=test2.adrop table grant_test.test2show tables from grant_testtestinsert into mysql.user (host,user) values ('error','grant_user',0)Error in execute: Access denied for user: 'grant_user'@'localhost' to database 'mysql'revoke ALL PRIVILEGES on grant_test.* from grant_user@localhostselect * from mysql.user where user = 'grant_user'localhost grant_user N N N N N N N N N N N N N N N N N N N N N 0 0 0select * from mysql.db where user = 'grant_user'grant CREATE,UPDATE,DROP on grant_test.* to grant_user@localhostConnecting grant_usercreate table grant_test.test2 (a int not null)update test,test2 SET test.a=1 where 1update test,test2 SET test.a=test2.a where 1Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'grant SELECT on grant_test.* to grant_user@localhostConnecting grant_userupdate test,test2 SET test.a=test2.a where test2.a=test.adrop table grant_test.test2revoke ALL PRIVILEGES on grant_test.* from grant_user@localhostConnecting grant_userError on connect: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'grant create on grant_test.test2 to grant_user@localhostConnecting grant_usercreate table grant_test.test2 (a int not null)show tablestest2show columns from testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'show keys from testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'show columns from test2a int(11) binary 0 show keys from test2select * from testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'grant insert on grant_test.test to grant_user@localhostshow tablestesttest2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -