I've a mariadb:10.10.6 running under a docker container. I'm running some tests in a java microservice that uses that database and I would like to log the exact query that the java client is sending to database.
i've tried setting the config file as:
general_log = ON general_log_file = /var/log/mysql/general.log log_slow_verbosity = full but still the geneeral log file comes with ? in the insert statement and i've many reasons to believe that it is compacting it:
something like
254 Close stmt 254 Prepare insert into announce_images (announce_id, image) values (?, ?) 254 Execute insert into announce_images (announce_id, image) values (?, ?) I'm trying to use the java persistence provider to make a batch insert and I would very much like to see a log showing
insert into announce_images (announce_id, image) values (?, ?) (?, ?) (?, ?) (?, ?) (?, ?) (?, ?) (?, ?) (?, ?) (?, ?) so i can guarantee that the persistence provider is really making a batch insert
how can i get a more complete accurate log on mariadb