mysql_explain
Analyze MySQL query performance by running EXPLAIN on SELECT statements, returning the execution plan and full-scan warnings to identify optimization opportunities.
Instructions
Run EXPLAIN on a SELECT statement to analyze query performance. Returns execution plan and full-scan warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SELECT statement to analyze | |
| database | No | Target database (optional) |