Backup MySQL Database (mysqldump)
mysql_backupExports a specified MySQL database to a local .sql backup file using mysqldump, enabling reliable data backup and recovery.
Instructions
使用 mysqldump 将指定数据库导出备份为本地 .sql 文件。
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>",
"outputPath": "<outputPath>"
},
"name": "mysql_backup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | 连接配置档案名 | |
| database | Yes | 要导出的数据库名称 | |
| outputPath | Yes | 导出的 .sql 文件路径 |