时间的法外狂徒

导航

mysql新加用户设置权限

1、开通操作权限和表权限

 

GRANT CREATE,ALTER,DROP,INSERT,UPDATE,DELETE,SELECT ON interface.* TO test1@'%' identified by 'test' WITH GRANT OPTION;

GRANT all ON interface.* TO test1@'%' identified by 'test' WITH GRANT OPTION;

2、移除权限

  

REVOKE select,CREATE,ALTER,DROP ON interface.* FROM test1@'%';

 

posted on 2019-09-30 11:20  抄手砚  阅读(304)  评论(0编辑  收藏  举报