One-click change of cluster user password for kingbaseES R3 cluster

In the latest version of the KingbaseES R3 cluster, kingbase_monitor.sh has added the function of one-click modifying the cluster user password. This case is a test of this function.

One-click password change instructions for kingbaseES R3 cluster:

1. Command line command
kingbase_monitor.sh change_password user old_password new_password

kingbase_monitor.sh change_password user old_password new_password — Changes the password of the user used by the cluster.

2. Describe
kingbase_monitor.sh change_password user old_password new_password to determine whether the user is the user used by the cluster. If so, change the user password. If not, prompt the user that the user is not used by the cluster. Please use the sql method to change the user password.

3. Options
The following are the script execution parameters:

The change_password
script calls the change user password function
user The user whose password is to be changed can only be the old password of the old_password user
specified during cluster initialization and the new password of the new_password user Example:





insert image description here

4. Matters needing attention

1. The password change operation can only be performed when all nodes in the cluster are in a normal state.
2. kingbase_monitor.sh change_password username 'old password' 'new password' When using the one-key password change function, the old password must be used as the new password parameter '' Bracket
3. The user must be the user used by the cluster streaming replication to modify the password, otherwise the user will be prompted that the cluster does not use the user, please use sql

Guess you like

Origin blog.csdn.net/weixin_43214644/article/details/126421773