Create DB user + grant
mysql_create_userCreate a MySQL user if missing and grant all privileges on a specific database, useful for site migrations where the database exists without a user.
Instructions
Create a MySQL user (if absent) and grant all privileges on one database. Useful when a migrated site has a DB but no registered 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": {
"database": "<database>",
"user": "<user>",
"password": "<password>"
},
"name": "mysql_create_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database to grant on | |
| user | Yes | New username | |
| password | Yes | Password for the new user | |
| host | No | Allowed host | localhost |