How to enable slow query log in MySQL/MariaDB

How to enable slow query log in MySQL/MariaDB

To enable MySQL slow query login, edit my.cnf file For MariaDB, edit Add Restart MySQL On CentOS, the command is