All endpoints are served on the TiDB status port (defaultDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/pingcap/tidb/llms.txt
Use this file to discover all available pages before exploring further.
10080). See HTTP API Overview for base URL and security notes.
POST /settings
Updates one or more runtime settings. Send parameters asapplication/x-www-form-urlencoded form data.
Enable or disable general query log
Change log level
debug, info, warn, error.
DDL slow log threshold
Sets the threshold (in milliseconds) above which DDL operations are recorded as slow:Async commit and one-phase commit
Deadlock history settings
Transaction summary settings
GET /ddl/history
Returns the DDL job history. By default, returns up to 2048 jobs.Pagination
Unique DDL job ID. Jobs are returned in reverse chronological order.
DDL operation type, for example
create table, add index, drop column.Final job state:
synced, cancelled, or rollback done.Database the DDL job operated on.
Table the DDL job operated on.
POST /ddl/owner/resign
Instructs the current TiDB node to resign from the DDL owner role, triggering a new owner election.If the target node is not the current DDL owner, the response will be:
This node is not a ddl owner, can't be resigned.GET /binlog/recover
Resumes binlog writing after a Pump recovery. By default, the request blocks until all in-flight transactions in the skipped state are committed.false means binlog is not in a skipped state (normal). true means binlog is currently being skipped.Number of transactions currently committing in the skipped state. Wait until this reaches
0 before considering the recovery complete.Query parameters
| Parameter | Description |
|---|---|
op=nowait | Return immediately after binlog status is recovered, without waiting for skipped transactions to commit. |
op=reset | Reset SkippedCommitterCounter to 0. Use when the counter is stuck due to an abnormal state. |
op=status | Return the current binlog recovery status without triggering recovery. |
400 response with body timeout means the request timed out before recovery completed.
POST /tables///reset-id
Resets theAUTO_INCREMENT counter for the specified table.
GET /debug/pprof/
Exposes Go runtime profiling endpoints compatible withgo tool pprof. Useful for diagnosing CPU, memory, goroutine, and mutex contention issues.
| Endpoint | Description |
|---|---|
/debug/pprof/heap | Memory heap profile |
/debug/pprof/goroutine | All current goroutines |
/debug/pprof/profile?seconds=30 | CPU profile (30-second sample) |
/debug/pprof/mutex | Mutex contention profile |
/debug/pprof/block | Goroutine blocking profile |
Debug ZIP bundle
For a comprehensive snapshot of the node’s state, download the debug zip:- Go heap profile (post-GC)
- Go CPU profile (10s)
- Go mutex profile
- Full goroutine dump
- TiDB configuration and version
seconds parameter controls the CPU profiling duration (default: 10s).
POST /upgrade/
Controls TiDB smooth upgrade mode. Use this during rolling upgrades to prevent incompatible DDL operations.GET /txn-gc-states
Returns the current GC (garbage collection) state for transactions.GET /stats/dump//
Downloads the optimizer statistics for a table in JSON format, which can be used for offline analysis or importing into another cluster.yyyyMMddHHmmss.