Baruch
Baruch

Reputation: 21538

MySQL SELECT history

How can I keep a record of recent SELECTs performed on a table/DB? I am trying to fix an old codebase that runs very slow queries that are built in multiple nested functions. It would be much easier to just see what querys are being run then trying to follow the code when building them.

Upvotes: 0

Views: 766

Answers (2)

FreudianSlip
FreudianSlip

Reputation: 2920

You dont have to restart mysql to enable this feature (slow query log).

See here : How can I enable MySQL's slow query log without restarting MySQL?

Upvotes: 1

nikhil500
nikhil500

Reputation: 3450

Use the Slow Query Log.

Upvotes: 2

Related Questions