codecamp

OceanBase SHOW GRANTS

描述

该语句用于系统管理员查看 User 的操作权限。

格式

SHOW GRANTS [FOR username];

参数解释

参数

描述

FOR username

如果不指定用户名,则缺省显示当前用户的权限。当前用户可以查看自己的权限。

如果需要查看其他指定用户的权限,必须拥有对 mysql.user 的 SELECT 权限。

示例

查看看用户 obsqluser01 的权限。

oceanBase(admin@TEST)>show grants for obsqluser01;
+-------------------------------------+
| Grants for obsqluser01@%            |
+-------------------------------------+
| GRANT USAGE ON *.* TO 'obsqluser01' |
+-------------------------------------+
1 row in set (0.02 sec)


OceanBase SET PASSWORD
OceanBase SHOW RECYCLEBIN
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定