Add alter user privilledge in Document

add alter user privilledge
This commit is contained in:
Bo Xiao 2020-09-28 11:19:32 +08:00 committed by GitHub
parent 72cef1d81d
commit ac004dc40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -233,6 +233,12 @@ ALTER USER <user_name> PASS <'password'>;
修改用户密码, 为避免被转换为小写,密码需要用单引号引用,单引号为英文半角
```
ALTER USER <user_name> PRIVILEDGE <'super'|'write'|'read'>;
```
修改用户权限为super/write/read。 为避免被转换为小写,密码需要用单引号引用,单引号为英文半角
```
SHOW USERS;
```