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.

Authorizations:
query Parameters
password
required
string

The user's new password.

Example: password=12345luggage
user
required
string

The MySQL database user.

Example: user=dbuser

Responses

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object

Request samples

uapi --output=jsonpretty \
  --user=username \
  Mysql \
  set_password \
  user='dbuser' \
  password='12345luggage'

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "set_password",
  • "module": "Mysql",
  • "result": {
    • "data": {
      • "failures": [
        • {
          • "error": "string",
          • "host": "string"
          }
        ]
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}