Q: Exception on accessing the database connection: Unknown system variable ‘query_cache_size’
Unknown system variable ‘tx_read_only’
A: 升级Mysql驱动版本,之前是6.0.5版本
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.15</version>
</dependency>