Connection to MySQL - [email protected] failed.
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
出现以上问题 说明你用的是自带的MySQL8.x版本 ,而你安装的MySQL非8.x版本
解决方案
方案一、点击下图圈红位置 选择你版本的驱动
方案二、在你数据库名后添加
?serverTimezone=GMT
因为MySQL8.x需要时区 如: hw?serverTimezone=GMT