背景:springboot + mybatis + mysql
问题1:Authentication plugin 'caching_sha2_password' cannot be loaded:
解决方法:
1.修改pom.xml;
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.15</version>
</dependency>
问题2:The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
解决方法:
1.打开MySQL Commond Line Client;
2.输入管理员密码登录;
3.输入命令行:
show variables like '%time_zone%';
time_zone.jpg
set global time_zone='+8:00';
set time_zone
网友评论