idea关联mysql失败_Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘
生活随笔
收集整理的這篇文章主要介紹了
idea关联mysql失败_Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
時區錯誤,MySQL默認的時區是UTC時區,比北京時間晚8個小時。
所以要修改mysql的時長
在mysql的命令模式下,輸入:
set global time_zone=’+8:00’;
再次連接成功
總結
以上是生活随笔為你收集整理的idea关联mysql失败_Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Can‘t connect to MyS
- 下一篇: Cause: java.sql.SQLS