简体   繁体   中英

Hibernate sending alien queries to database

I have a web application backed by hibernate. For last few days, I have started closely monitoring mysql and found that hibernate is sending unknown queries to the database which infact are not being sent from any part of app.

query looks like

| /* mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} ) */SHOW VARIABLES WHERE Variable_name ='l |

This is not related to Hibernate or to the pooling mechanism. This is performed by the driver itself once a connection is made. The driver does that to configure itself. See the code in com.mysql.jdbc.ConnectionImpl.loadServerVariables()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM