mysql8以上版本時區問題:The server time zone value亂碼XXXX


異常類似:

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

 

解決方法:鏈接URL后拼接參數serverTimezone=GMT

如:jdbc:mysql://localhost:3306/gnota?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT

重新clean instal一把,防止緩存還是讀的原配置鏈接


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM