错误:
Connection to @localhost failed.
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
解决:
1. jdbc不要选错
com.mysql.cj.jdbc.Driver
2.后面加serverTimezone=UTC
jdbc:mysql://localhost:3306?serverTimezone=UTC