Skip to content

Commit

Permalink
add user role
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-moe committed Mar 24, 2020
1 parent bb7836c commit 91ed42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GRANT ROLE <role_type> ON <space> TO <user>

使用 `GRANT` 语句为 **Nebula Graph** 用户授予权限。使用 `GRANT` 必须拥有 `GRANT` 权限。

目前 **Nebula Graph** 包含四种角色权限:`GOD``ADMIN``DBA``GUEST`
目前 **Nebula Graph** 包含四种角色权限:`GOD``ADMIN``DBA``USER``GUEST`

通常,需要先使用 `CREATE USER` 创建帐户,然后再使用 `GRANT` 为其授予权限。待授予的角色以及用户帐户必须存在,否则会发生错误。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ GRANT ROLE <role_type> ON <space> TO <user>

The `GRANT` statement assigns roles to **Nebula Graph** user accounts. To use `GRANT`, you must have the `GRANT` privilege.

Currently, there are four roles in **Nebula Graph**: `GOD`, `ADMIN`, `DBA` and `GUEST`.
Currently, there are four roles in **Nebula Graph**: `GOD`, `ADMIN`, `DBA`, `USER` and `GUEST`.

Normally, a database administrator first uses `CREATE USER` to create an account then uses `GRANT` to define its privileges. Each role and user account to be granted must exist, or errors will occur.

Expand Down

0 comments on commit 91ed42b

Please sign in to comment.