文章目录 1.Unknown system variable 'query_cache_size'2. 运行tomcat时,控制台乱码 1.Unknown system variable ‘query_cache_size’ 解决:采用指定版本 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.45</version> <scope>runtime</scope> </dependency> 2. 运行tomcat时,控制台乱码 VM options 设置为 -Dfile.encoding=UTF-8 ,重启tomcat