rename_mysql_user
Change an existing cPanel MySQL username by specifying the current full username and new suffix, so database accounts can be updated without recreating the user.
Instructions
Rename an existing MySQL user
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"old_user": "<old_user>",
"new_user": "<new_user>"
},
"name": "rename_mysql_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new_user | Yes | New username (suffix without prefix) | |
| old_user | Yes | Current full username |