skip to Main Content

How to see the SQL queries Hibernate issuing for setting transaction level and autocommit – Mysql

On my MySQL server, in the general log I see a ton of logs that look like: 2023-03-31T09:31:23.208-07:00 2023-03-31T16:31:23.208345Z37028 Query SET autocommit=0 2023-03-31T09:31:23.211-07:00 2023-03-31T16:31:23.211201Z36956 Query set session transaction read write 2023-03-31T09:31:23.211-07:00 2023-03-31T16:31:23.211807Z36957 Query /* dynamic native SQL query */ select…

VIEW QUESTION

From where my springboot app loads database? – Mysql

I'm trying to link a project to a database My application.properties file spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false Config file @Configuration @EnableTransactionManagement public class DBConfig { @Bean public DataSource dataSource() { HikariConfig config = new HikariConfig(); config.setJdbcUrl("jdbc:mysql://localhost:3306/users"); config.setUsername("root"); config.setPassword("1111"); config.addDataSourceProperty("cachePrepStmts", "true"); config.addDataSourceProperty("prepStmtCacheSize", "250"); config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");…

VIEW QUESTION
Back To Top
Search