Mysql连接:The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone。
-
简单的解决办法:
- 创建数据库连接好似jdbc:mysql:///3306/demo------>jdbc:mysql:///3306/demo?serverTimezone=UTC
-
根本解决:
-
找到配置文件的位置:SELECT @@datadir;
设置:my.ini 添加:default-time_zone = '+8:00'
-
博客主要围绕MySQL连接时出现的时区问题展开,指出错误信息为“The server time zone value '�й���ʱ��' is unrecognized...”,并给出两种解决办法,一是在创建数据库连接时添加serverTimezone=UTC,二是在配置文件my.ini中添加default-time_zone = '+8:00'。

1万+

被折叠的 条评论
为什么被折叠?



