Could not create connection to database server. Attempted reconnect 3 times. Giving up

1、錯誤原因
mysql的時區設置的不正確 mysql默認的是美國的時區

2、解決方法
增加:serverTimezone=UTC

 url: jdbc:mysql://xx:3306/test?serverTimezone=UTC

換版本mysql—5.1.28

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章