IntelliJ IDEA连接不上数据库 (Connection to testdb@localhost failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
问题提示为:
原因:MySQL数据库版本为8.0以上,需要在URL加上时区,即加上?serverTimezone=GMT
成功后为:
问题提示为:
原因:MySQL数据库版本为8.0以上,需要在URL加上时区,即加上?serverTimezone=GMT
成功后为: