This function changes a MySQL® database user's name.
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 |
whmapi1 --output=jsonpretty \ rename_mysql_user \ oldname='username' \ newname='username2'
{- "metadata": {
- "command": "rename_mysql_user",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}