mysql重连服务器失败_java – MySQL连接器错误“服务器时区值中...
參見(jiàn)英文答案 > The server time zone value ‘AEST’ is unrecognized or represents more than one time zone????????????????????????????????????9個(gè)
我的問(wèn)題
MySQL連接器“服務(wù)器時(shí)區(qū)值中歐時(shí)間”無(wú)法識(shí)別或代表多個(gè)時(shí)區(qū).
該項(xiàng)目
小型網(wǎng)站項(xiàng)目:
JavaEE,Tomcat 8.5,MySQL,Maven
我的嘗試
> Maven – >將MySQL-connector格式6.x更改為5.1.39(無(wú)更改)
>編輯context.xml URL更改
context.xml中的連接
URL =“jdbc:mysql://127.0.0.1:3306 / rk_tu_lager?useLegacyDatetimeCode = false; serverTimezone = CEST; useSSL = false;
錯(cuò)誤:
Caused by:
com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The
server time zone value ‘Mitteleurop?ische Sommerzeit’ 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.
總結(jié)
以上是生活随笔為你收集整理的mysql重连服务器失败_java – MySQL连接器错误“服务器时区值中...的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 民生国航知音联名卡申请多久下卡
- 下一篇: 2017最新民生车车信用卡申请条件及额度