Hello
You can utilize the following entries in your /etc/my.cnf file:
Code:
slow-query-log=1
slow-query-log-file="/var/log/mysql-slow-queries.log"
Ensure you create the "/var/log/mysql-slow-queries.log" file and it's owned by the "mysql" user.
Thank you.