Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
在CSDN上看到一篇目前是已經解決了問題
https://blog.csdn.net/liuqiker/article/details/102455077
現在記下,等下次碰到再看看。
1、解決方法設置mysql的時區
首先查看mysql的時區,輸入show variables like'%time_zone';
一般默認Value是system時,是未設置時區的。
然后進行修改時區,輸入set global time_zone = '+8:00';
2、同步mysql的驅動
第一次在IDEA上進行MySQL的關聯時,需要下載驅動
點擊Go to Driver,選擇對應的驅動
然后進行測試