0

I am currently using MySQL Workbench which already contains a logging mechanism. The problem is, is that the log only logs queries executed within the Workbench.
Any connections made by JDBC isn't actually logged. How do I create a log that incorporates the Java queries into SQL?

I am using Workbench 6.3, SQL version 5.6.31

Destrif
  • 2,104
  • 1
  • 14
  • 22
JStef
  • 176
  • 1
  • 7

1 Answers1

1

I believe you need the server side logging. If that's correct, see How to enable MySQL Query Log?.

This, of course, logs all the SQL queries received by the MySQL server (all connections), which means you should use it judiciously.

Community
  • 1
  • 1
Kedar Mhaswade
  • 4,535
  • 2
  • 25
  • 34