-- config 설정
/*
slow_query_log = 1
slow_query_log_file     = /var/log/mysql/mariadb-slow.log
long_query_time = 10
*/

select * from mysql.slow_log order by start_time desc;
-- show variables where Variable_name like ('%slow%');
show variables like '%slow%';
show variables like 'log_output';

-- log_output='TABLE'