【坑】The server time zone value '�й���׼ʱ��' is unrecognized or represents more than one time zone

錯誤環境:

mysql版本:6.0.6mysql

錯誤緣由:

使用原mysql5.1.38不會出現該問題
因使用了Mysql最新版驅動因此報錯sql

解決方案:

方案一、在項目代碼-數據庫鏈接URL後,加上 (注意大小寫必須一致)
?serverTimezone=UTC
數據庫

方案二、在mysql中設置時區,默認爲SYSTEM
set global time_zone='+8:00'

server

相關文章
相關標籤/搜索