I setup MariaDB server on Linux. How do I enable slow query log in MariaDB server on Linux or Unix-like system? The slow query log is nothing but a log of SQL queries that took a long time on your server. You can use this facility to find out SQL queries that are slowing down your dynamic web app. Please note that default disables the slow query log. So let us see how to set and enable slow query log in MariaDB server.