The general query log
The general query log is a general purpose log, used to record all the actions performed by mysqld. In this log, file statements are written in the sequence in which they are received, but the execution sequence may differ from the receiving sequence. It starts logging from the connection of the client and continues until it disconnects. Apart from SQL commands it also logs the connection_type means by which the protocol client is connected, for example TCP/IP, SSL, Socket, and many more. As it logs most of the action performed by mysqld it's very useful when we want to find what error occurred with the client.
By default, this log is disabled. We can enable it by using the --general_log[={0|1}] command. When we do not ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access