Analyze the slow query log for the slowest queries
analyze mysql slow query log | which queries are the slowest | mysql performance analysis | mysqldumpslow | mysql | mariadb | slow-logmysqldumpslow -s t -t 10 /var/log/mysql/mariadb-slow.logGroups queries that differ only in their concrete values and sorts them by total runtime (-s t). It shows the ten most expensive patterns with count, average time and a sample query. This allows targeted optimization instead of chasing individual outliers.
Note: -s c sorts by frequency. SHOW VARIABLES LIKE 'slow_query_log_file'; shows the current log path.
Open question before approval: Prüfen, ob mysqldumpslow bzw. mariadb-dumpslow auf Debian 12 mit MariaDB 10.11 im Paket mariadb-server enthalten ist und welcher Logpfad tatsächlich gesetzt ist.
Also searched as
- analyze mysql slow query log
- which queries are the slowest
- mysql performance analysis