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
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