grant select on db3.b3 to admin@"192.168.2.%" identified by "123456";
grant select,update,insert,delete on db3.* to admin@"localhost" identified by "123456";
2. 撤销权限
命令格式:
revoke 权限列表 on 库名.表名 from 用户名@"客户端地址";
应用实例:
撤销 admin用户在db3.b3表中的select 权限。
mysql> revoke select on db3.b3 from admin@"192.168.2.%";