How to profile MySQL

前端 未结 5 1121
猫巷女王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:14

    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

提交回复
热议问题