连接数据库程序: 报错信息:
翻译报错信息: 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. 273/5000 服务器的时区值“й—ʱ—”是无法识别的,或者代表了多个时区。如果您想利用时区支持,您必须配置服务器或JDBC驱动程序(通过serverTimezone配置属性)来使用更特定的时区值。 问题原因: 未指定时区的配置,需要更改连接数据的配置。 解决方法: 需要加上时区的配置,在连接字符串中加上serverTimezone。
运行结果正常。
免责声明:本文内容均来自互联网,但不代表简明教程的观点和立场.
已有 6429 次赞