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‘
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
時(shí)區(qū)錯(cuò)誤,MySQL默認(rèn)的時(shí)區(qū)是UTC時(shí)區(qū),比北京時(shí)間晚8個(gè)小時(shí)。
所以要修改mysql的時(shí)長(zhǎng)
在mysql的命令模式下,輸入:
set global time_zone=’+8:00’;
再次連接成功
總結(jié)
以上是生活随笔為你收集整理的idea关联mysql失败_Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Can‘t connect to MyS
- 下一篇: 关于Maven中pom自动补全