在Idea中连接数据库是抛出The server time zone value '�й���ʱ��' is unrecogni错误 原因是因为使用了Mysql Connector/J 6.x以上的版本,然后就报了时区的错误
解决办法是 在配置url的时候不能简单写成 :
jdbc:mysql://localhost:3306/yzu
而是要写成 :
jdbc:mysql://localhost:3306/yzu?serverTimezone=UTC
在Idea中连接数据库是抛出The server time zone value '�й���ʱ��' is unrecogni错误 原因是因为使用了Mysql Connector/J 6.x以上的版本,然后就报了时区的错误
解决办法是 在配置url的时候不能简单写成 :
jdbc:mysql://localhost:3306/yzu
而是要写成 :
jdbc:mysql://localhost:3306/yzu?serverTimezone=UTC
本文标题:The server time zone value '�й��
本文链接:https://www.haomeiwen.com/subject/tsjbrctx.html
网友评论