There are two ways you can log the queries. One way is through general query log, and other way is through slow query log. In this section, you will learn about configuring them.
Managing the general query log and slow query log
How to do it...
We will get into the details in the following subsections.
General query log
As per the MySQL documentation:
The general query log is a general record of what mysqld is doing. The server writes information to this log when clients connect or disconnect, and it logs each SQL statement received from clients. The general query...