For some reason, the Maria DB (version 10.1) slow query log is not writing anything. I've enabled slow query logging:
select @@slow_query_log, @@slow_query_log_file, @@long_query_time, @@log_output;
| 1 | /var/log/mysql/mariadb-slow.log | 3.000000 | FILE |
I can trigger a slow query and see that it is being noted:
select sleep(5);
show status like 'Slow_queries%';
| Slow_queries | 1 |
But when I check the slow query log in /var/log/mysql/mariadb-slow.log, it is empty.
Slow_queries? Or just that it does not write to the log file? – rich remer Dec 30 '18 at 21:56Slow_querieson 10.1. – rich remer Dec 30 '18 at 21:57log_outputtoTABLE? – Rick James Jan 02 '19 at 04:55