mybatis -generator:generate

来源:3-11 mysql数据库安装与配置实操(windows)

Mosea

2021-08-31

[ERROR] Failed to execute goal org.mybatis.generator:
mybatis-generator-maven-plugin:1.3.2:
generate (default-cli) on project mmall: 
Client does not support authentication protocol 
requested by server; consider upgrading MySQL client -> [Help 1]
[ERROR]

按照这个报错的信息应该mysql版本不对,我的mysql数据是8.0版本,老师之前用的是5.0,我看了这个问题的其他同学的相关提问,需要与老师版本一样5.0版本,我没有降低mysql的版本而是mysql-connector-java-5.1.6-bin.jar改为8.0版本之后mysql-connector-java-8.0.16.jar,出现一个问题。

[[ERROR] Failed to execute goal org.mybatis.generator:
mybatis-generator-maven-plugin:1.3.2:
generate (default-cli) on project mmall: 
The server time zone value '�й���׼ʱ��'
 is unrecognized or represents more than one time zone. 
You must configure either the server or
 JDBC driver (via the serverTimezone configuration property) 
 to use a more specifc time zone value 
 if you want to utilize time zone support. -> [Help 1]
[ERROR] 
[ERROR] 

上网查了很多也没有找到这个问题的解决办法,请求老师帮助。
老师请问一下。jar一个有bin一个没有bin,两者有什么差别吗?我上网看到有人说没有差别,所以就没有找8.0版本的mysql-connector-java.bin。应该不会是这个引起的吧。

写回答

1回答

geelylucky

2021-09-29

You must configure either the server or
 JDBC driver (via the serverTimezone configuration property) 
 to use a more specifc time zone value 
 if you want to utilize time zone support. -> [Help 1]

看起来是jdbc驱动版本导致的问题哟同学

0
0

从0开始 独立完成企业级Java电商网站服务端开发

前后端分离,数据库接口设计,架构设计,功能开发,上线运维

9487 学习 · 8814 问题

查看课程