[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
一般处理方式:在url后面加上
?serverTimezone=GMT
原因的话是因为mysql默认的时区不是中国的,好像是美国的,然后如果想根源解决的话:
在终端登录
mysql -uroot -p123456
上面的输入自已的密码,小编的密码是123456
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191019231258576.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxOTgxNjUx,size_16,color_FFFFFF,t_70)
set global time_zone = '+8:00';
show variables like '%time_zone%';