#设置权限
grant select,insert,update,delete,create,drop,alter
on db_student.user_htsb_auth_log to 'user'@'%';
flush privileges;
#取消权限
REVOKE SELECT,INSERT,UPDATE ON db_nono.campus_relation from market@'%';
flush PRIVILEGES;
其中:
db_student是数据库名称
user_htsb_auth_log是表名
user代表被授权的用户
%代表任何IP地址。
参考链接1
参考链接2