Modify Account Management SQL Help Document (#9020)
Modify Account Management SQL Help Document
This commit is contained in:
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## CREATE-ROLE
|
||||
|
||||
### Name
|
||||
|
||||
CREATE ROLE
|
||||
|
||||
### Description
|
||||
|
||||
The statement user creates a role
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## CREATE-USER
|
||||
|
||||
### Name
|
||||
|
||||
CREATE USER
|
||||
|
||||
### Description
|
||||
|
||||
The CREATE USER command is used to create a Doris user.
|
||||
|
||||
@ -28,8 +28,22 @@ under the License.
|
||||
|
||||
### Description
|
||||
|
||||
The statement user removes a role
|
||||
|
||||
```sql
|
||||
DROP ROLE role1;
|
||||
````
|
||||
|
||||
Deleting a role does not affect the permissions of users who previously belonged to the role. It is only equivalent to decoupling the role from the user. The permissions that the user has obtained from the role will not change
|
||||
|
||||
### Example
|
||||
|
||||
1. Drop a role1
|
||||
|
||||
```sql
|
||||
DROP ROLE role1;
|
||||
````
|
||||
|
||||
### Keywords
|
||||
|
||||
DROP, ROLE
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## DROP-USER
|
||||
|
||||
### Name
|
||||
|
||||
DROP USER
|
||||
|
||||
### Description
|
||||
|
||||
Delete a user
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## GRANT
|
||||
|
||||
### Name
|
||||
|
||||
GRANT
|
||||
|
||||
### Description
|
||||
|
||||
The GRANT command is used to grant the specified user or role specified permissions
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## LDAP
|
||||
|
||||
### Name
|
||||
|
||||
LDAP
|
||||
|
||||
### Description
|
||||
|
||||
SET LDAP_ADMIN_PASSWORD
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## REVOKE
|
||||
|
||||
### Name
|
||||
|
||||
REVOKE
|
||||
|
||||
### Description
|
||||
|
||||
The REVOKE command is used to revoke the privileges assigned by the specified user or role.
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## SET-PASSWORD
|
||||
|
||||
### Name
|
||||
|
||||
SET PASSWORD
|
||||
|
||||
### Description
|
||||
|
||||
The SET PASSWORD command can be used to modify a user's login password. If the [FOR user_identity] field does not exist, then change the current user's password
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## SET-PROPERTY
|
||||
|
||||
### Name
|
||||
|
||||
SET PROPERTY
|
||||
|
||||
### Description
|
||||
|
||||
Set user attributes, including resources assigned to users, importing clusters, etc.
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## CREATE ROLE
|
||||
|
||||
### Name
|
||||
|
||||
CREATE ROLE
|
||||
|
||||
### Description
|
||||
|
||||
该语句用户创建一个角色
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## CREATE USER
|
||||
|
||||
### Name
|
||||
|
||||
CREATE USER
|
||||
|
||||
### Description
|
||||
|
||||
CREATE USER 命令用于创建一个 Doris 用户。
|
||||
|
||||
@ -26,19 +26,23 @@ under the License.
|
||||
|
||||
## DROP-ROLE
|
||||
|
||||
### Name
|
||||
|
||||
DROP ROLE
|
||||
|
||||
### Description
|
||||
|
||||
The statement user removes a role
|
||||
语句用户删除角色
|
||||
|
||||
```sql
|
||||
DROP ROLE role1;
|
||||
````
|
||||
|
||||
Deleting a role does not affect the permissions of users who previously belonged to the role. It is only equivalent to decoupling the role from the user. The permissions that the user has obtained from the role will not change
|
||||
删除角色不会影响以前属于角色的用户的权限。 它仅相当于解耦来自用户的角色。 用户从角色获得的权限不会改变
|
||||
|
||||
### Example
|
||||
|
||||
1. Delete a role
|
||||
1. 删除一个角色
|
||||
|
||||
```sql
|
||||
DROP ROLE role1;
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## DROP-USER
|
||||
|
||||
### Name
|
||||
|
||||
DROP USER
|
||||
|
||||
### Description
|
||||
|
||||
删除一个用户
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## GRANT
|
||||
|
||||
### Name
|
||||
|
||||
GRANT
|
||||
|
||||
### Description
|
||||
|
||||
GRANT 命令用于赋予指定用户或角色指定的权限
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## LDAP
|
||||
|
||||
### Name
|
||||
|
||||
LDAP
|
||||
|
||||
### Description
|
||||
|
||||
SET LDAP_ADMIN_PASSWORD
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## REVOKE
|
||||
|
||||
### Name
|
||||
|
||||
REVOKE
|
||||
|
||||
### Description
|
||||
|
||||
REVOKE 命令用于撤销指定用户或角色指定的权限。
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## SET-PASSWORD
|
||||
|
||||
### Name
|
||||
|
||||
SET PASSWORD
|
||||
|
||||
### Description
|
||||
|
||||
SET PASSWORD 命令可以用于修改一个用户的登录密码。如果 [FOR user_identity] 字段不存在,那么修改当前用户的密码
|
||||
|
||||
@ -26,6 +26,10 @@ under the License.
|
||||
|
||||
## SET PROPERTY
|
||||
|
||||
### Name
|
||||
|
||||
SET PROPERTY
|
||||
|
||||
### Description
|
||||
|
||||
设置用户的属性,包括分配给用户的资源、导入cluster等
|
||||
@ -81,25 +85,25 @@ key:
|
||||
### Example
|
||||
|
||||
1. 修改用户 jack 最大连接数为1000
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'max_user_connections' = '1000';
|
||||
```
|
||||
|
||||
2. 修改用户 jack 的cpu_share为1000
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'resource.cpu_share' = '1000';
|
||||
```
|
||||
|
||||
3. 修改 jack 用户的normal组的权重
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'quota.normal' = '400';
|
||||
```
|
||||
|
||||
4. 为用户 jack 添加导入cluster
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack'
|
||||
'load_cluster.{cluster_name}.hadoop_palo_path' = '/user/doris/doris_path',
|
||||
@ -107,31 +111,31 @@ key:
|
||||
```
|
||||
|
||||
5. 删除用户 jack 下的导入cluster。
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'load_cluster.{cluster_name}' = '';
|
||||
```
|
||||
|
||||
6. 修改用户 jack 默认的导入cluster
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'default_load_cluster' = '{cluster_name}';
|
||||
```
|
||||
|
||||
7. 修改用户 jack 的集群优先级为 HIGH
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'load_cluster.{cluster_name}.priority' = 'HIGH';
|
||||
```
|
||||
|
||||
8. 修改用户jack的查询可用instance个数为3000
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'max_query_instances' = '3000';
|
||||
```
|
||||
|
||||
9. 修改用户jack的sql block rule
|
||||
|
||||
|
||||
```sql
|
||||
SET PROPERTY FOR 'jack' 'sql_block_rules' = 'rule1, rule2';
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user