欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

程序员文章站 2022-05-01 15:55:32
...

[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

一般处理方式:在url后面加上

?serverTimezone=GMT

原因的话是因为mysql默认的时区不是中国的,好像是美国的,然后如果想根源解决的话:
在终端登录

mysql -uroot -p123456

上面的输入自已的密码,小编的密码是123456
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.

set global time_zone = '+8:00';
show variables like '%time_zone%';