Q: Exception on accessing the database connection: Unknown system variable ‘query_cache_size’

    Unknown system variable ‘tx_read_only’

    1. A: 升级Mysql驱动版本,之前是6.0.5版本
    2. <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
    3. <dependency>
    4. <groupId>mysql</groupId>
    5. <artifactId>mysql-connector-java</artifactId>
    6. <version>8.0.15</version>
    7. </dependency>