This topic describes how to change the password of a user in OceanBase Developer Center (ODC) or OceanBase Cloud Platform (OCP), or by using SQL statements.
Change the password of a user in ODC
Prerequisites
ODC has connected to the database.
Procedure
Log on to the ODC console.
On the Connections page, select the connected database and click Edit.
The Edit Connection page appears.
Under the data password, click Change Password to change the password.

Change the password of a user in OCP
Before you change the password of a tenant user, ensure that you have the permission to modify the tenant.
Prerequisites
The current OCP user has permissions of the TENANT_MANAGER role. Otherwise, request the OCP administrator to grant you the permissions. For more information, see the "Edit a user" topic in OCP User Guide of the corresponding version.
Procedure
Log on to the OCP console.
In the left-side navigation pane, click Tenants.
In the tenant list, find the target tenant to which the user belongs and click the tenant name. The Overview page appears.
In the left-side navigation pane, click User Management.
In the user list, find the user whose password is to be changed. In the Actions column, click Change Password.

In the dialog box that appears, enter the new password and confirm it, and then click OK.
Change the password of a user by using SQL statements
You can execute the ALTER USER statement to change the passwords of other users. To execute this statement, you must have the UPDATE USER privilege``.
Syntax
ALTER USER 'username' IDENTIFIED BY 'password';
Examples
Change the password of the ny user to **1***.
obclient> ALTER USER `ny` IDENTIFIED BY '**1***';
Query OK, 0 rows affected