📄 grant.res
字号:
insert into grant_test.test values (8,0)update grant_test.test set b=1Error in execute: update command denied to user: 'grant_user'@'localhost' for table 'test'grant update on grant_test.test to grant_user@localhostupdate grant_test.test set b=2update grant_test.test,test2 SET test.b=3Error in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'grant select on grant_test.test2 to grant_user@localhostupdate grant_test.test,test2 SET test.b=3revoke select on grant_test.test2 from grant_user@localhostdelete from grant_test.testError in execute: delete command denied to user: 'grant_user'@'localhost' for table 'test'grant delete on grant_test.test to grant_user@localhostdelete from grant_test.test where a=1Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test'update grant_test.test set b=3 where b=1Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'b' in table 'test'update grant_test.test set b=b+1Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'b' in table 'test'update grant_test.test,test2 SET test.a=test2.aError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'grant SELECT on *.* to grant_user@localhostConnecting grant_userupdate grant_test.test set b=b+1update grant_test.test set b=b+1 where a > 0update grant_test.test,test2 SET test.a=test2.aupdate grant_test.test,test2 SET test2.a=test.aError in execute: UPDATE command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'revoke SELECT on *.* from grant_user@localhostgrant SELECT on grant_test.* to grant_user@localhostConnecting grant_userupdate grant_test.test set b=b+1update grant_test.test set b=b+1 where a > 0grant UPDATE on *.* to grant_user@localhostConnecting grant_userupdate grant_test.test set b=b+1update grant_test.test set b=b+1 where a > 0revoke UPDATE on *.* from grant_user@localhostrevoke SELECT on grant_test.* from grant_user@localhostConnecting grant_userupdate 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'update grant_test.test set b=b+1Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'b' in table 'test'select * from testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'grant select on grant_test.test to grant_user@localhostdelete from grant_test.test where a=1update grant_test.test set b=2 where b=1update grant_test.test set b=b+1select count(*) from test3update test,test2 SET test.b=4Error in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'update test,test2 SET test2.a=test.aError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'update test,test2 SET test.a=test2.aError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'create table grant_test.test3 (a int)Error in execute: create command denied to user: 'grant_user'@'localhost' for table 'test3'alter table grant_test.test2 add c intError in execute: alter command denied to user: 'grant_user'@'localhost' for table 'test2'grant alter on grant_test.test2 to grant_user@localhostalter table grant_test.test2 add c intcreate index dummy ON grant_test.test (a)Error in execute: index command denied to user: 'grant_user'@'localhost' for table 'test'grant index on grant_test.test2 to grant_user@localhostcreate index dummy ON grant_test.test2 (a)insert into test2 SELECT a,a from testError in execute: insert command denied to user: 'grant_user'@'localhost' for table 'test2'grant insert on test2 to grant_user@localhostError in execute: Table 'mysql.test2' doesn't existgrant insert(a) on grant_test.test2 to grant_user@localhostinsert into test2 SELECT a,a from testError in execute: insert command denied to user: 'grant_user'@'localhost' for column 'c' in table 'test2'grant insert(c) on grant_test.test2 to grant_user@localhostinsert into test2 SELECT a,a from testselect count(*) from test2,testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'select count(*) from test,test2Error in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'replace into test2 SELECT a from testError in execute: delete command denied to user: 'grant_user'@'localhost' for table 'test2'grant update on grant_test.test2 to grant_user@localhostupdate test,test2 SET test2.a=test.aupdate test,test2 SET test.b=test2.a where 0Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'update test,test2 SET test.a=2 where test2.a>100Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'update test,test2 SET test.a=test2.aError in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'replace into test2 SELECT a,a from testError in execute: delete command denied to user: 'grant_user'@'localhost' for table 'test2'grant DELETE on grant_test.test2 to grant_user@localhostreplace into test2 SELECT a,a from testinsert into test (a) SELECT a from test2Error in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'grant SELECT on grant_test.test2 to grant_user@localhostupdate test,test2 SET test.b=test2.a where 0update test,test2 SET test.a=test2.a where test2.a>100revoke UPDATE on grant_test.test2 from grant_user@localhostgrant UPDATE (c) on grant_test.test2 to grant_user@localhostupdate test,test2 SET test.b=test2.a where 0update test,test2 SET test.a=test2.a where test2.a>100update test,test2 SET test2.a=test2.a where test2.a>100Error in execute: UPDATE command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'update test,test2 SET test2.c=test2.a where test2.a>100revoke SELECT,UPDATE on grant_test.test2 from grant_user@localhostgrant UPDATE on grant_test.test2 to grant_user@localhostdrop table grant_test.test2Error in execute: drop command denied to user: 'grant_user'@'localhost' for table 'test2'grant select on grant_test.test2 to grant_user@localhost with grant optionError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'grant drop on grant_test.test2 to grant_user@localhost with grant optiongrant drop on grant_test.test2 to grant_user@localhost with grant optiongrant select on grant_test.test2 to grant_user@localhost with grant optionError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test2'rename table grant_test.test2 to grant_test.test3Error in execute: insert command denied to user: 'grant_user'@'localhost' for table 'test3'grant CREATE,DROP on grant_test.test3 to grant_user@localhostrename table grant_test.test2 to grant_test.test3Error in execute: insert command denied to user: 'grant_user'@'localhost' for table 'test3'create table grant_test.test3 (a int)grant INSERT on grant_test.test3 to grant_user@localhostdrop table grant_test.test3rename table grant_test.test2 to grant_test.test3rename table grant_test.test3 to grant_test.test2Error in execute: alter command denied to user: 'grant_user'@'localhost' for table 'test3'grant ALTER on grant_test.test3 to grant_user@localhostrename table grant_test.test3 to grant_test.test2revoke DROP on grant_test.test2 from grant_user@localhostrename table grant_test.test2 to grant_test.test3drop table if exists grant_test.test2,grant_test.test3Error in execute: drop command denied to user: 'grant_user'@'localhost' for table 'test2'drop table if exists grant_test.test2,grant_test.test3create database grant_testError in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'drop database grant_testError in execute: Access denied for user: 'grant_user'@'localhost' to database 'grant_test'flush tablesError in execute: Access denied. You need the RELOAD privilege for this operationflush privilegesselect Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_privlocalhost grant_test grant_user test2 root@localhost Update,Delete,Create,Grant,Index,Alter Insertlocalhost grant_test grant_user test root@localhost Select,Insert,Update,Delete localhost grant_test grant_user test3 root@localhost Insert,Create,Drop,Alter revoke ALL PRIVILEGES on grant_test.test from grant_user@localhostrevoke ALL PRIVILEGES on grant_test.test2 from grant_user@localhostrevoke ALL PRIVILEGES on grant_test.test3 from grant_user@localhostrevoke GRANT OPTION on grant_test.test2 from grant_user@localhostselect Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_privselect count(a) from testError in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'grant create,update on grant_test.test2 to grant_user@localhostcreate table grant_test.test2 (a int not null)delete from grant_test.test where a=2Error in execute: delete command denied to user: 'grant_user'@'localhost' for table 'test'delete from grant_test.test where A=2Error in execute: delete command denied to user: 'grant_user'@'localhost' for table 'test'update test set b=5 where b>0Error in execute: update command denied to user: 'grant_user'@'localhost' for table 'test'update test,test2 SET test.b=5 where b>0Error in execute: select command denied to user: 'grant_user'@'localhost' for table 'test'grant update(b),delete on grant_test.test to grant_user@localhostrevoke update(a) 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'delete from grant_test.test where a=2Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test'update test set b=5 where b>0Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'b' in table 'test'grant select(a),select(b) on grant_test.test to grant_user@localhostdelete from grant_test.test where a=2delete from grant_test.test where A=2update test set b=5 where b>0update test set a=11 where b>5Error in execute: UPDATE command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test'update test,test2 SET test.b=5 where b>0update test,test2 SET test.a=11 where b>0Error in execute: UPDATE command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test'update test,test2 SET test.b=test2.a where b>0Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'update test,test2 SET test.b=11 where test2.a>0Error in execute: SELECT command denied to user: 'grant_user'@'localhost' for column 'a' in table 'test2'select a,A from test8 85 57 7select Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_privlocalhost grant_test grant_user test2 root@localhost Update,Create localhost grant_test grant_user test root@localhost Delete Select,Updaterevoke ALL PRIVILEGES on grant_test.test from grant_user@localhostselect Host, Db, User, Table_name, Grantor, Table_priv, Column_priv from mysql.tables_privlocalhost grant_test grant_user test2 root@localhost Update,Create revoke GRANT OPTION 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'drop table grant_test.test2revoke create,update on grant_test.test2 from grant_user@localhostgrant select(a) on grant_test.test to grant_user@localhostshow full columns from testa int(11) binary YES NULL select b int(11) binary YES NULL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -