Mysql
User Management

Update MySQL user password

Changed on

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

Request

  • Base URL
    https://cpanel-server.tld:2083/execute
  • Auth
    HTTP basic

Query parameters

passwordstring password 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
  }
}

Changes