Skip to content

Commit

Permalink
Update 2.management-user.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-lzy authored Oct 12, 2023
1 parent e5f6393 commit 55f6387
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,10 @@ The `root` user with the **GOD** role can run `ALTER USER` to set a new password
ALTER USER <user_name> [WITH PASSWORD '<password>'] [WITH IP WHITELIST <ip_list>];
```

- Example with enterprise edition

!!! enterpriseonly
- `ip_list`: Sets the IP address whitelist. Any IP can connect to the database without this option. When this option is used, only IPs in the list can connect to the database. Use commas to separate multiple IP addresses.
- `%`: Cancel the whitelist. Users can connect to the database using any IP.

Using `WITH IP WHITELIST` without any IP after it means whitelisting is canceled and users can connect to NebulaGraph using any IP.
- Example with enterprise edition

```ngql
nebula> ALTER USER user2 WITH PASSWORD 'change_password';
Expand All @@ -191,7 +190,7 @@ The `root` user with the **GOD** role can run `ALTER USER` to set a new password
| "root" | "" |
| "user2" | "192.168.10.10" |
+---------+-----------------+
nebula> ALTER USER user2 WITH IP WHITELIST;
nebula> ALTER USER user2 WITH IP WHITELIST %;
nebula> SHOW USERS;
+---------+--------------+
| Account | IP Whitelist |
Expand Down

0 comments on commit 55f6387

Please sign in to comment.