This function resets the root user's password on the local MySQL® server.
Important:
When you disable the MySQL/MariaDB role and remote MySQL is not already configured, the system disables this function.
HTTP Request was successful.
object | |
object |
whmapi1 --output=jsonpretty \ set_local_mysql_root_password \ password='12345luggage'
{- "data": {
- "configs_updated": 1,
- "password_reset": 1,
- "profile_updated": 1
}, - "metadata": {
- "command": "set_local_mysql_root_password",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}