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.
password required | string The user's new password. Example: |
user required | string The MySQL database user. Example: |
HTTP Request was successful.
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --output=jsonpretty \ --user=username \ Mysql \ set_password \ user='dbuser' \ password='12345luggage'
{- "apiversion": 3,
- "func": "set_password",
- "module": "Mysql",
- "result": {
- "data": {
- "failures": [
- {
- "error": "string",
- "host": "string"
}
]
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}