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 can simply parse the query log in real time. If on linux, you can use tail -f to see the log live
Also, you can try some free software from these guys:
http://hackmysql.com/mysqlsla