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;
MySqlAdministrator have some useful build in features (including logs view), but for logs it have to be run on same machine as database