How to profile MySQL

前端 未结 5 1109
猫巷女王i
猫巷女王i 2020-12-05 13:46

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;
  • <
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 14:10

    You want the query log - but obviously doing this on a heavy production server could be... unwise.

提交回复
热议问题