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
时间: 2023-04-30 11:06:31 浏览: 53
服务器时区值'\xc3\x96\xc3\x90\xc2\xb9\xc3\xba\xc2\xb1\xc3\xaa\xc3\x97\xc2\xbc\xc3\x8a\xc2\xb1\xc2\xbc\xc3\xa4'无法识别或表示多个时区。如果您想使用时区支持,您必须配置服务器或JDBC驱动程序(通过servertimezone配置属性)以使用更具体的时区值。
相关问题
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
这个报错是因为数据库和系统的时区设置不一致造成的。MySQL默认的时区是美国的时***的URL后面加上serverTimezone=GMT+8,示例:jdbc:mysql://localhost:3306/springbootdemo?serverTimezone=GMT+8
方法二:在MySQL中设置时区为系统所在时区(推荐):mysql> set global time_zone='8:00';
方法三(推荐):在my.ini配置文件中添加如下配置:default-time-zone='8:00'
请注意,这些方法中的GMT+8代表中国大陆的时区。
the server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized
服务器时区值“\xc3\x96\xc3\x90\xc2\xb9\xc3\xba\xc2\xb1\xc3\xaa\xc3\x97\xc2\xbc\xc3\x8a\xc2\xb1\xc2\xbc\xc3\xa4”无法识别。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)