Today in the use of IDEA database connection error occurs, it tries to connect with their own get the following error:
Connection to failed The [email protected].
[08001] Could not the Create Database Connection Server Attempted to 3 Times Giving up the Reconnect...
This method can try to add at the end of the time zone, usually can be solved.
This URL can be modified as needed:
jdbc:mysql://127.0.0.1:3306/test?serverTimezone=Asia/Shanghai
Complete or modify this URL:
jdbc:mysql://127.0.0.1:3306/test?useSSL=false&serverTimezone=Asia/Shanghai&characterEncoding=utf-8&autoReconnect=true