How to select the last executed queries in MySQL?
Asked
Active
Viewed 1.5k times
0
-
Would you mind giving us a few more details, please? Thanks. – Pete Wilson Apr 13 '11 at 20:20
-
I do not understand the question – Richard H Apr 13 '11 at 20:20
-
I know that in oracle we have a "select" that returns the queries history. Is there something similar in MySQL? – Victor Apr 13 '11 at 20:22
-
1possible duplicate of [How to show the last queries executed on MySQL?](http://stackoverflow.com/questions/650238/how-to-show-the-last-queries-executed-on-mysql) – kapa Apr 13 '11 at 20:25
2 Answers
0
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.

Ike Walker
- 64,401
- 14
- 110
- 109