mysql 5.7 赋予 查询 撤销 用户权限

1 赋予指定用户权限

grant select,insert on *.* to 'shop'@'%';

2 查询指定用户权限

show grants for shop;

3 撤销指定用户权限

REVOKE ALL ON *.* FROM 'shop'@'%';

附上一条链接仅供参考:https://www.cnblogs.com/benbenhan/articles/13886279.html

posted @ 2021-05-27 17:16  哦~杰克  阅读(131)  评论(0编辑  收藏  举报