mariadb-errors-slow-queries

Diagnose and optimize slow MariaDB queries using logs, EXPLAIN, and performance schema.

2|Updated May 19, 2026
One-click install
npx skills add https://github.com/Impertio-Studio/MariaDB-Claude-Skill-Package --skill mariadb-errors-slow-queries
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mariadb-errors-slow-queries
Source: https://github.com/Impertio-Studio/MariaDB-Claude-Skill-Package/tree/main/skills/source/mariadb-errors/mariadb-errors-slow-queries
Command: npx skills add https://github.com/Impertio-Studio/MariaDB-Claude-Skill-Package --skill mariadb-errors-slow-queries

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pt-query-digest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps diagnose and optimize slow MariaDB queries by analyzing slow query logs, performance schema data, and EXPLAIN output.

Core Features & Use Cases

  • Slow Query Log Analysis: Enable, configure, and analyze slow query logs to identify slow queries.
  • Performance Schema: Utilize performance schema to profile query performance and detect bottlenecks.
  • EXPLAIN Output Analysis: Interpret EXPLAIN output to understand query execution plans and identify potential issues.
  • Use Case: If you notice that a particular query is consistently slow, use this Skill to enable the slow query log, analyze the query using EXPLAIN, and identify missing indexes or suboptimal query plans.

Quick Start

Use the mariadb-errors-slow-queries skill to enable slow query logging on your MariaDB instance with the command 'mariadb-errors-slow-queries enable_slow_logging'.

Frequently Asked Questions about mariadb-errors-slow-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose slow MariaDB queries using slow query logs?

Diagnose slow MariaDB queries by enabling slow query logging, analyzing the logs with pt-query-digest, and interpreting EXPLAIN output to identify missing indexes or suboptimal execution plans.

How does EXPLAIN output help optimize MariaDB query performance?

EXPLAIN output helps optimize MariaDB query performance by revealing the query execution plan, allowing you to detect bottlenecks, identify missing indexes, and pinpoint suboptimal query structures.

Can I use performance schema to profile query bottlenecks in MariaDB?

Yes, you can use performance schema to profile query performance in MariaDB, detecting bottlenecks and analyzing detailed execution metrics to guide your query optimization efforts.

Do I need pt-query-digest to analyze MariaDB slow query logs?

Yes, pt-query-digest is a required dependency for aggregating and analyzing MariaDB slow query logs, providing the necessary data processing to identify your most impactful slow queries.

What is the best way to identify missing indexes causing slow MariaDB queries?

The best way to identify missing indexes is to enable slow query logging, isolate the slow query, and analyze its EXPLAIN output to reveal where full table scans or suboptimal joins occur.

When should I not rely solely on slow query logs for MariaDB performance tuning?

Do not rely solely on slow query logs when you need real-time profiling; instead, utilize performance schema data to detect active bottlenecks and complement the historical log analysis.