docs: description of user privileges

This commit is contained in:
kailixu 2024-12-06 15:25:56 +08:00
parent 9c2e0284fd
commit 925a500118
3 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ The parameters are explained as follows.
- pass: Modify the user's password. - pass: Modify the user's password.
- enable: Whether to enable the user. 1 means to enable this user, 0 means to disable this user. - enable: Whether to enable the user. 1 means to enable this user, 0 means to disable this user.
- sysinfo: Whether the user can view system information. 1 means they can view system information, 0 means they cannot. - sysinfo: Whether the user can view system information. 1 means they can view system information, 0 means they cannot.
- createdb: Whether the user can create databases. 1 means they can create databases, 0 means they cannot. // Supported starting from TDengine Enterprise version 3.3.2.0 - createdb: Whether the user can create databases. 1 means they can create databases, 0 means they cannot. // Supported starting from TDengine Enterprise version 3.3.2.0
The following SQL disables the user test. The following SQL disables the user test.

View File

@ -78,7 +78,7 @@ alter_user_clause: {
- PASS: Change the password, followed by the new password - PASS: Change the password, followed by the new password
- ENABLE: Enable or disable the user, `1` means enable, `0` means disable - ENABLE: Enable or disable the user, `1` means enable, `0` means disable
- SYSINFO: Allow or prohibit viewing system information, `1` means allow, `0` means prohibit - SYSINFO: Allow or prohibit viewing system information, `1` means allow, `0` means prohibit
- CREATEDB: Allow or prohibit creating databases, `1` means allow, `0` means prohibit - CREATEDB: Allow or prohibit creating databases, `1` means allow, `0` means prohibit. // Supported starting from TDengine Enterprise version 3.3.2.0
The following example disables the user named `test`: The following example disables the user named `test`:

View File

@ -78,7 +78,7 @@ alter_user_clause: {
- PASS: 修改密码,后跟新密码 - PASS: 修改密码,后跟新密码
- ENABLE: 启用或禁用该用户,`1` 表示启用,`0` 表示禁用 - ENABLE: 启用或禁用该用户,`1` 表示启用,`0` 表示禁用
- SYSINFO: 允许或禁止查看系统信息,`1` 表示允许,`0` 表示禁止 - SYSINFO: 允许或禁止查看系统信息,`1` 表示允许,`0` 表示禁止
- CREATEDB: 允许或禁止创建数据库,`1` 表示允许,`0` 表示禁止 - CREATEDB: 允许或禁止创建数据库,`1` 表示允许,`0` 表示禁止. // 从 TDengine 企业版 3.3.2.0 开始支持
下面的示例禁用了名为 `test` 的用户: 下面的示例禁用了名为 `test` 的用户: