idea關聯mysql時報錯Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon'

解決辦法: 1.進入命令窗口(Win + R),連接數據庫 mysql -uroot -p,回車,輸入密碼,回車,輸入:show variables like'%time_zone';如圖: 2.設置北京時區,set global time_zone='+8:00';正常情況如下: 這時你重新連接下數據庫,也許能連接成功! ps:當數據庫在執行其他任務時,set global time_zone=
相關文章
相關標籤/搜索