今天用IDEA的DataBase功能连接数据库出现了

Connection to @localhost failed. [08001] Could not create connection to database server. Attempt_其他

 

 


但是自己路径账户密码什么的都没问题,想起来之前JDBC碰见的时区问题,解决

在数据库路径后加

?serverTimezone=GMT

即可

Connection to @localhost failed. [08001] Could not create connection to database server. Attempt_其他_02