跳到主要内容
版本:latest

ClearMySQLBinlog

清理指定天数前的 MySQL 二进制日志文件。

  • 路由POST /database
  • actionClearMySQLBinlog

输入参数

参数名称必选类型描述
actionString固定值 ClearMySQLBinlog
daysInteger保留最近 N 天的日志

示例

POST /database HTTP/1.1
Content-Type: application/x-www-form-urlencoded

action=ClearMySQLBinlog&days=7

输出参数

参数名称类型描述
statusBoolean请求结果,true 表示成功
msgString提示信息
{"status": true, "msg": "清理完成!"}