When using a database, it often happens that developers want to know what’s going on behind the scene. In this short and easy-to-follow guide, we cover how to enable MySQL/MariaDB query logging and save queries to a file.
Source: LXer – How to Enable MySQL/MariaDB Query Logging