Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘

問題描述: intellij idea連接mysql數據庫時報錯:Server returns invalid timezone. Go to ‘Advanced’ tab and set ‘serverTimezon’ 問題分析 該錯誤爲時區錯誤,MySQL默認的時區是UTC時區,比北京時間晚8個小時。 解決 1、解決方法是在連接字符串後加?serverTimezone=Asia/Shangha
相關文章
相關標籤/搜索