How to select the last executed 开发者_开发技巧queries in MySQL?
You can enable the General Query Log.
Edit: Duplicate question. Answer here.
If the general query log is enabled, then you can use tail
to see the most recent queries executed on your server.
If the general query log is disabled, there is no way to do this.
If the binary log is enabled you can see the most recent insert/update/delete queries in there, but not selects.
精彩评论