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.

SecurityBasicAuth
Request
query Parameters
password
required
string

The user's new password.

Example: password=12345luggage
user
required
string

The MySQL database user.

Example: user=dbuser
Responses
200

HTTP Request was successful.

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
get/Mysql/set_password
Request samples
uapi --output=jsonpretty \
  --user=username \
  Mysql \
  set_password \
  user='dbuser' \
  password='12345luggage'
Response samples
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
    }
}