doc: password format
This commit is contained in:
parent
03627a142d
commit
b212aec1db
|
@ -18,7 +18,7 @@ create user user_name pass'password' [sysinfo {1|0}]
|
||||||
The parameters are explained as follows.
|
The parameters are explained as follows.
|
||||||
|
|
||||||
- user_name: Up to 23 B long.
|
- user_name: Up to 23 B long.
|
||||||
- password: Up to 128 B long, valid characters include letters and numbers as well as special characters other than single and double quotes, apostrophes, backslashes, and spaces, and it cannot be empty.
|
- password: The password must be between 8 and 16 characters long and include at least three types of characters from the following: uppercase letters, lowercase letters, numbers, and special characters. Special characters include `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`.
|
||||||
- sysinfo: Whether the user can view system information. 1 means they can view it, 0 means they cannot. System information includes server configuration information, various node information such as dnode, query node (qnode), etc., as well as storage-related information, etc. The default is to view system information.
|
- sysinfo: Whether the user can view system information. 1 means they can view it, 0 means they cannot. System information includes server configuration information, various node information such as dnode, query node (qnode), etc., as well as storage-related information, etc. The default is to view system information.
|
||||||
|
|
||||||
The following SQL can create a user named test with the password 123456 who can view system information.
|
The following SQL can create a user named test with the password 123456 who can view system information.
|
||||||
|
|
|
@ -13,14 +13,14 @@ CREATE USER user_name PASS 'password' [SYSINFO {1|0}];
|
||||||
|
|
||||||
The username can be up to 23 bytes long.
|
The username can be up to 23 bytes long.
|
||||||
|
|
||||||
The password can be up to 31 bytes long. The password can include letters, numbers, and special characters except for single quotes, double quotes, backticks, backslashes, and spaces, and it cannot be an empty string.
|
The password must be between 8 and 16 characters long and include at least three types of characters from the following: uppercase letters, lowercase letters, numbers, and special characters. Special characters include `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`.
|
||||||
|
|
||||||
`SYSINFO` indicates whether the user can view system information. `1` means they can view, `0` means they have no permission to view. System information includes service configuration, dnode, vnode, storage, etc. The default value is `1`.
|
`SYSINFO` indicates whether the user can view system information. `1` means they can view, `0` means they have no permission to view. System information includes service configuration, dnode, vnode, storage, etc. The default value is `1`.
|
||||||
|
|
||||||
In the example below, we create a user with the password `123456` who can view system information.
|
In the example below, we create a user with the password `abc123!@#` who can view system information.
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
taos> create user test pass '123456' sysinfo 1;
|
taos> create user test pass 'abc123!@#' sysinfo 1;
|
||||||
Query OK, 0 of 0 rows affected (0.001254s)
|
Query OK, 0 of 0 rows affected (0.001254s)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ This document details the server error codes that may be encountered when using
|
||||||
| 0x80000350 | User already exists | Create user, duplicate creation | Confirm if the operation is correct |
|
| 0x80000350 | User already exists | Create user, duplicate creation | Confirm if the operation is correct |
|
||||||
| 0x80000351 | Invalid user | User does not exist | Confirm if the operation is correct |
|
| 0x80000351 | Invalid user | User does not exist | Confirm if the operation is correct |
|
||||||
| 0x80000352 | Invalid user format | Incorrect format | Confirm if the operation is correct |
|
| 0x80000352 | Invalid user format | Incorrect format | Confirm if the operation is correct |
|
||||||
| 0x80000353 | Invalid password format | Incorrect format | Confirm if the operation is correct |
|
| 0x80000353 | Invalid password format | The password must be between 8 and 16 characters long and include at least three types of characters from the following: uppercase letters, lowercase letters, numbers, and special characters. | Confirm if the operation is correct |
|
||||||
| 0x80000354 | Can not get user from conn | Internal error | Report issue |
|
| 0x80000354 | Can not get user from conn | Internal error | Report issue |
|
||||||
| 0x80000355 | Too many users | (Enterprise only) Exceeding user limit | Adjust configuration |
|
| 0x80000355 | Too many users | (Enterprise only) Exceeding user limit | Adjust configuration |
|
||||||
| 0x80000357 | Authentication failure | Incorrect password | Confirm if the operation is correct |
|
| 0x80000357 | Authentication failure | Incorrect password | Confirm if the operation is correct |
|
||||||
|
|
|
@ -16,14 +16,14 @@ create user user_name pass'password' [sysinfo {1|0}]
|
||||||
```
|
```
|
||||||
|
|
||||||
相关参数说明如下。
|
相关参数说明如下。
|
||||||
- user_name:最长为 23 B。
|
- user_name:用户名最长不超过 23 个字节。
|
||||||
- password:最长为 128 B,合法字符包括字母和数字以及单双引号、撇号、反斜杠和空格以外的特殊字符,且不可以为空。
|
- password:密码长度必须为 8 到 16 位,并且至少包含大写字母、小写字母、数字、特殊字符中的三类。特殊字符包括 `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`。
|
||||||
- sysinfo :用户是否可以查看系统信息。1 表示可以查看,0 表示不可以查看。系统信息包括服务端配置信息、服务端各种节点信息,如 dnode、查询节点(qnode)等,以及与存储相关的信息等。默认为可以查看系统信息。
|
- sysinfo :用户是否可以查看系统信息。1 表示可以查看,0 表示不可以查看。系统信息包括服务端配置信息、服务端各种节点信息,如 dnode、查询节点(qnode)等,以及与存储相关的信息等。默认为可以查看系统信息。
|
||||||
|
|
||||||
如下 SQL 可以创建密码为 123456 且可以查看系统信息的用户 test。
|
如下 SQL 可以创建密码为 abc123!@# 且可以查看系统信息的用户 test。
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
create user test pass '123456' sysinfo 1
|
create user test pass 'abc123!@#' sysinfo 1
|
||||||
```
|
```
|
||||||
|
|
||||||
### 查看用户
|
### 查看用户
|
||||||
|
|
|
@ -14,14 +14,14 @@ CREATE USER user_name PASS 'password' [SYSINFO {1|0}];
|
||||||
|
|
||||||
用户名最长不超过 23 个字节。
|
用户名最长不超过 23 个字节。
|
||||||
|
|
||||||
密码最长不超过 31 个字节。密码可以包含字母、数字以及除单引号、双引号、反引号、反斜杠和空格以外的特殊字符,密码不能为空字符串。
|
密码长度必须为 8 到 16 位,并且至少包含大写字母、小写字母、数字、特殊字符中的三类。特殊字符包括 `! @ # $ % ^ & * ( ) - _ + = [ ] { } : ; > < ? | ~ , .`。
|
||||||
|
|
||||||
`SYSINFO` 表示该用户是否能够查看系统信息。`1` 表示可以查看,`0` 表示无权查看。系统信息包括服务配置、dnode、vnode、存储等信息。缺省值为 `1`。
|
`SYSINFO` 表示该用户是否能够查看系统信息。`1` 表示可以查看,`0` 表示无权查看。系统信息包括服务配置、dnode、vnode、存储等信息。缺省值为 `1`。
|
||||||
|
|
||||||
在下面的示例中,我们创建一个密码为 `123456` 且可以查看系统信息的用户。
|
在下面的示例中,我们创建一个密码为 `abc123!@#` 且可以查看系统信息的用户。
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
taos> create user test pass '123456' sysinfo 1;
|
taos> create user test pass 'abc123!@#' sysinfo 1;
|
||||||
Query OK, 0 of 0 rows affected (0.001254s)
|
Query OK, 0 of 0 rows affected (0.001254s)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -127,7 +127,7 @@ description: TDengine 服务端的错误码列表和详细说明
|
||||||
| 0x80000350 | User already exists | Create user, 重复创建 | 确认操作是否正确 |
|
| 0x80000350 | User already exists | Create user, 重复创建 | 确认操作是否正确 |
|
||||||
| 0x80000351 | Invalid user | 用户不存在 | 确认操作是否正确 |
|
| 0x80000351 | Invalid user | 用户不存在 | 确认操作是否正确 |
|
||||||
| 0x80000352 | Invalid user format | 格式不正确 | 确认操作是否正确 |
|
| 0x80000352 | Invalid user format | 格式不正确 | 确认操作是否正确 |
|
||||||
| 0x80000353 | Invalid password format | 格式不正确 | 确认操作是否正确 |
|
| 0x80000353 | Invalid password format | 密码长度必须为 8 到 16 位,并且至少包含大写字母、小写字母、数字、特殊字符中的三类 | 确认密码字符串的格式 |
|
||||||
| 0x80000354 | Can not get user from conn | 内部错误 | 上报issue |
|
| 0x80000354 | Can not get user from conn | 内部错误 | 上报issue |
|
||||||
| 0x80000355 | Too many users | (仅企业版)用户数量超限 | 调整配置 |
|
| 0x80000355 | Too many users | (仅企业版)用户数量超限 | 调整配置 |
|
||||||
| 0x80000357 | Authentication failure | 密码不正确 | 确认操作是否正确 |
|
| 0x80000357 | Authentication failure | 密码不正确 | 确认操作是否正确 |
|
||||||
|
|
Loading…
Reference in New Issue