问题处理-Z平台启动错误(The server time zone value ‘?й???????‘ is unrecognized or represents ....)

Posted 赵戬

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题处理-Z平台启动错误(The server time zone value ‘?й???????‘ is unrecognized or represents ....)相关的知识,希望对你有一定的参考价值。

在Z平台启动过程中,如果发现如下错误:

Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (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.)

 该错误是使用mysql8.0版本及以上版本数据库时,在连接URL中,未指定时区或时区错误导致的。

处理方法如下:

jdbc:mysql://IP地址:端口号/实例名?serverTimezone=GMT%2B8&useSSL=false

 

以上是关于问题处理-Z平台启动错误(The server time zone value ‘?й???????‘ is unrecognized or represents ....)的主要内容,如果未能解决你的问题,请参考以下文章

启动mysql时报错误:Starting MySQL.The server quit without updating PID file (/var/lib/mysql/tserver.pid).[F

LINUX环境中tomcat启动错误:The servlets named X and Y are both mapped to the url-pattern [/Z] which is not p

解决mysql启动时报The server quit without updating PID file 的错误(转)

This server is in the failed servers list: localhost/127.0.0.1:16000 启动hbase api调用错误

坑The server time zone value '?й???????' is unrecognized or represents more than one time z(代

Apache2启动错误Could not reliably determine the server's fully qualified domain name