1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| select * from mysql.user; select * from mysql.tables_priv; select * from mysql.columns_priv;
select user();
grant all privileges on *.* to keyllo@localhost identified by '123456' with grant option;
grant create,create temporary tables,update,execute,select,show view,usage,delete on test.* to keyllo2@localhost identified by '123456' with grant option;
flush privileges;
revoke select,update on test.* from keyllo2@localhost;
drop user keyllo2@localhost;
show grants for root@localhost;
|