How to capture a Mysql query from a given table in real time?

Asked

Viewed 589 times

4

I am wanting to capture the queries that are sent to Mysql of a particular application, it is possible?

  • Legal would have some example that can be used?

  • 1

    @Marcosvinicius I think you got the question wrong.

1 answer

3

If you have the paid version, there is Enterprise Monitor.

In the "poor" version, you can activate the General Log, but cannot enable or disable by database.

With the log active, you have the option to turn off and on again dynamically with the commands:

SET GLOBAL general_log = 'OFF';

And...

SET GLOBAL general_log = 'ON';

Browser other questions tagged

You are not signed in. Login or sign up in order to post.