If you host your own instance of MySQL, you can run it with logs to examine statements by following the guide at:
Guide | URL |
---|---|
Running MySQL locally/System variables: log output | https://dev.mysql.com/doc/refman/8.0/en/server-system-variables.html#sysvar_log_output |
MySQL Docker installation with logs | https://hub.docker.com/_/mysql |