docs: createdb permission for user
This commit is contained in:
parent
0397826c68
commit
a5441b78bc
|
@ -39,10 +39,10 @@ This is an example:
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
taos> show users;
|
taos> show users;
|
||||||
name | super | enable | sysinfo | create_time |
|
name | super | enable | sysinfo | createdb | create_time | allowed_host |
|
||||||
================================================================================
|
=========================================================================================================
|
||||||
test | 0 | 1 | 1 | 2022-08-29 15:10:27.315 |
|
test | 0 | 1 | 1 | 0 |2022-08-29 15:10:27.315 | 127.0.0.1 |
|
||||||
root | 1 | 1 | 1 | 2022-08-29 15:03:34.710 |
|
root | 1 | 1 | 1 | 1 |2022-08-29 15:03:34.710 | 127.0.0.1 |
|
||||||
Query OK, 2 rows in database (0.001657s)
|
Query OK, 2 rows in database (0.001657s)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -50,10 +50,10 @@ Alternatively, you can get the user information by querying a built-in table, IN
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
taos> select * from information_schema.ins_users;
|
taos> select * from information_schema.ins_users;
|
||||||
name | super | enable | sysinfo | create_time |
|
name | super | enable | sysinfo | createdb | create_time | allowed_host |
|
||||||
================================================================================
|
=========================================================================================================
|
||||||
test | 0 | 1 | 1 | 2022-08-29 15:10:27.315 |
|
test | 0 | 1 | 1 | 0 |2022-08-29 15:10:27.315 | 127.0.0.1 |
|
||||||
root | 1 | 1 | 1 | 2022-08-29 15:03:34.710 |
|
root | 1 | 1 | 1 | 1 |2022-08-29 15:03:34.710 | 127.0.0.1 |
|
||||||
Query OK, 2 rows in database (0.001953s)
|
Query OK, 2 rows in database (0.001953s)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -72,12 +72,14 @@ alter_user_clause: {
|
||||||
PASS 'literal'
|
PASS 'literal'
|
||||||
| ENABLE value
|
| ENABLE value
|
||||||
| SYSINFO value
|
| SYSINFO value
|
||||||
|
| CREATEDB value
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- PASS: Modify the user password.
|
- PASS: Modify the user password.
|
||||||
- ENABLE: Specify whether the user is enabled or disabled. 1 indicates enabled and 0 indicates disabled.
|
- ENABLE: Specify whether the user is enabled or disabled. 1 indicates enabled and 0 indicates disabled.
|
||||||
- SYSINFO: Specify whether the user can query system information. 1 indicates that the user can query system information and 0 indicates that the user cannot query system information.
|
- SYSINFO: Specify whether the user can query system information. 1 indicates that the user can query system information and 0 indicates that the user cannot query system information.
|
||||||
|
- CREATEDB: Specify whether the user can create databases. 1 indicates that the user can create databases and 0 indicates that the user cannot create databases.
|
||||||
|
|
||||||
For example, you can use below command to disable user `test`:
|
For example, you can use below command to disable user `test`:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue