Log queries are a big performance overload, so itโs disabled by default. If you want to log requests, set the value of the log variable to my.cnf
log=/tmp/mysql.log
It is not recommended if your application is running live, as it will greatly slow down, and users may receive 500 or connection timeout errors. After debugging is complete, comment on it.
source share