Write a JDBC to connect to Mysql database, and there is no problem with the configuration, but this error is reported. Baidu translation: Cannot create a connection to the database server. Try to reconnect 3 times. Give up Could not create connection to database server. Attempted reconnect 3 times. Giving up.
First check your mysql driver version, whether it corresponds to your mysql installation version. Later, I checked the information and found that the time zone setting was incorrect.
Solution: add serverTimezone=GMT after the url of jdbc connection
connection succeeded!