How do I profile a MySQL database. I want to see all the SQL being run against a database.
I know you can do this:
set profiling=1;
You want the query log - but obviously doing this on a heavy production server could be... unwise.