开发者

MySQL: Select the last executed queries

开发者 https://www.devze.com 2023-02-25 14:05 出处:网络
How to select the last executed 开发者_开发技巧queries in MySQL?You can enable the General Query Log.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消