After this PR #9272, the `docs/build_help_zip.sh` will run failed. This PR fix this issue. But the help module still has some parse problem, I will fix it in next PR. This CL mainly changes: 1. fix `docs/build_help_zip.sh` error 2. remove `sql-reference-v2` to `sql-reference` 3. modify build extension github action to run `docs/build_help_zip.sh`
1.8 KiB
1.8 KiB
title, language
| title | language |
|---|---|
| REVOKE | en |
REVOKE
Name
REVOKE
Description
The REVOKE command is used to revoke the privileges assigned by the specified user or role.
REVOKE privilege_list ON db_name[.tbl_name] FROM user_identity [ROLE role_name]
REVOKE privilege_list ON RESOURCE resource_name FROM user_identity [ROLE role_name]
user_identity:
The user_identity syntax here is the same as CREATE USER. And must be a user_identity created with CREATE USER. The host in user_identity can be a domain name. If it is a domain name, the revocation time of permissions may be delayed by about 1 minute.
It is also possible to revoke the permissions of the specified ROLE, the executed ROLE must exist.
Example
-
Revoke the permission of user jack database testDb
REVOKE SELECT_PRIV ON db1.* FROM 'jack'@'192.%'; -
Revoke user jack resource spark_resource permission
REVOKE USAGE_PRIV ON RESOURCE 'spark_resource' FROM 'jack'@'192.%';
Keywords
REVOKE