Viewing ALL queries to MySQL...

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
RH
Posts: 31
Joined: Sat 16 Sep 2006 06:32

Viewing ALL queries to MySQL...

Post by RH » Mon 18 Sep 2006 17:45

Is there anyway to view all the queries that the MySQL server gets ?

I tried to drop the TMySQlMonitor component on the the form of the demo project "Loader". Then I started CoreLabs DBMonitor. The DBMonitor showed some sql queries, but not all. For instance pressing the load button on the "loader" demo form, causes inserts into the database. However these inserts were not shown...

Is there a way to inspect simply EVERY transaction between an application and the MySQL Database. Even a use statement, a statement fetching record count... Evereything in detail ?

I am thinking about something like a packet sniffer, that intercepts every thing between the database server and the application.

I appreciate any input

Kind regards

Zagawa
Posts: 21
Joined: Fri 12 May 2006 09:56

Post by Zagawa » Tue 19 Sep 2006 09:44

Hello,

I think you should see that :

http://dev.mysql.com/doc/refman/5.0/en/query-log.html

:wink:

RH
Posts: 31
Joined: Sat 16 Sep 2006 06:32

Post by RH » Tue 19 Sep 2006 18:47

thats all I need. Thanks :D

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Wed 20 Sep 2006 11:00

We have not added logging to TMyLoader component because of performance reasons. TMyLoader is destined for extremely quick loading data to the server, so logging would slow down loading. TMyLoader executes commands with Connection.ExecSQL() method. This method also does not support logging, so all queries executed by this method will not be logged.

Post Reply