v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mysql
User Management

Update MySQL user password

This function sets a MySQL® database user's password.

Important:

When you disable the MySQL role and remote MySQL is not already configured, the system disables this function.

get/Mysql/set_password

Query parameters

passwordstring required
Example:12345luggage

The user's new password.

userstring required
Example:dbuser

The MySQL database user.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "set_password",
  "module": "Mysql",
  "result": {
    "status": 1
  }
}