get_statements_with_errors
Identify MySQL queries causing errors or warnings to pinpoint problematic application SQL statements and improve database performance.
Instructions
Get statements that produce errors or warnings.
Identifies queries with:
Error counts
Warning counts
Error rates
Helps identify problematic application queries.
Note: This tool excludes queries against MySQL system schemas (mysql, information_schema, performance_schema, sys) to focus on user/application query analysis.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum statements to return | |
| errors_only | No | Only show statements with errors (not warnings) |