After this PR #9272, the `docs/build_help_zip.sh` will run failed. This PR fix this issue. But the help module still has some parse problem, I will fix it in next PR. This CL mainly changes: 1. fix `docs/build_help_zip.sh` error 2. remove `sql-reference-v2` to `sql-reference` 3. modify build extension github action to run `docs/build_help_zip.sh`
2.1 KiB
title, language
| title | language |
|---|---|
| SET-PASSWORD | en |
SET-PASSWORD
Name
SET PASSWORD
Description
The SET PASSWORD command can be used to modify a user's login password. If the [FOR user_identity] field does not exist, then change the current user's password
SET PASSWORD [FOR user_identity] =
[PASSWORD('plain password')]|['hashed password']
Note that the user_identity here must exactly match the user_identity specified when creating a user with CREATE USER, otherwise an error will be reported that the user does not exist. If user_identity is not specified, the current user is 'username'@'ip', which may not match any user_identity. Current users can be viewed through SHOW GRANTS.
The plaintext password is input in the PASSWORD() method; when using a string directly, the encrypted password needs to be passed. To modify the passwords of other users, administrator privileges are required.
Example
-
Modify the current user's password
SET PASSWORD = PASSWORD('123456') SET PASSWORD = '*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9' -
Modify the specified user password
SET PASSWORD FOR 'jack'@'192.%' = PASSWORD('123456') SET PASSWORD FOR 'jack'@['domain'] = '*6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9'
Keywords
SET, PASSWORD