How to view all MySQL queries on a server
20 August 2023 (Updated 20 August 2023)
On this page
Enable logging
Locate your mysql.cnf
file and add the following configuration options.
Restart your MySQL server (how you do this will depend on your platform and installation method).
Tail the log file
Run:
Do some stuff in your app that triggers SQL queries and the SQL queries should then show up in your terminal as something like:
Tagged:
MySQL
Thanks for your comment . Once it's approved, it will appear here.
Leave a comment