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.
password required | string The new MySQL root user's password. Example: password=12345luggage |
update_config | integer Whether to update the configuration files.
Warning: This parameter updates the
Example: update_config=1 |
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
}
}