Get or reset the MySQL root password
danger_mysql_root_passwordRead or set the MySQL root password on an aaPanel server, but only when AAPANEL_ALLOW_DANGEROUS is enabled; otherwise access is denied.
Instructions
Read the MySQL root password, or set a new one when password is supplied. This is the highest-privilege credential on the box: the server refuses to expose it unless AAPANEL_ALLOW_DANGEROUS is set.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "danger_mysql_root_password"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Config row id. | |
| key | No | Key to read, normally mysql_root. | mysql_root |
| table | No | Table to read, normally config. | config |