CREATE USER 'test22'@'%' IDENTIFIED BY '1234';
語法:數據庫
grant all on db_name.table_name to 'user_name'@'host_name';
grant all ievent.* to 'user'@'%'
revoke all ievent.* from 'user'@'%'
grant ievent.a_test on 'test2'@'%'
revoke all on ievent.a_test from 'test2'@'%'
grant select,insert,update on ievetn.a_test to 'test2'@'%'
show grants for 'test2'@'%' GRANT USAGE ON *.* TO `test2`@`%`;標示沒有特殊權限