The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone错误

连接数据库过程报错:

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.

解决方法:

在URL的后面添加:?serverTimezone=UTC,即:jdbc.url=jdbc:mysql://localhost:3306/mydatabase?serverTimezone=UTC


版权声明:本文为weixin_44732093原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。