Create MySQL Database
create_databaseCreate a UTF8MB4 database in a local MySQL instance on a selected 1Panel node and set client access and user credentials without exposing passwords.
Instructions
Create a UTF8MB4 database in a local MySQL instance on the selected node. Access defaults to localhost; passwords are never echoed back.
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>",
"name": "<name>"
},
"name": "create_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New schema/database name. | |
| nodeId | No | Target node ID: "local" for the Main Node, or a numeric string ID (e.g. "3") from list_nodes. | local |
| database | Yes | Local MySQL instance name. | |
| password | No | Database user password (never returned). | |
| username | No | Database user name. | |
| permission | No | Allowed client host (defaults to "localhost", or "%" / specific IP). | localhost |