解决MySQL连接问题:[08001] Could not create connection to database server. Attempted reconnect 3 times.

程序跑起来后突然发现数据库连不上了,报了一个[08001] Could not create connection to database server. Attempted reconnect 3 times.的错。

解决MySQL连接问题:[08001] Could not create connection to database server. Attempted reconnect 3 times._第1张图片

搞得姐妹一脸懵逼,先去检查了一下数据库的配置有没有问题,感觉都OK着,可是就连不上,经过一番检验,发现是本地服务里面MySQL的服务没有启动,Then,如下,在系统上搜索service,打开之后找到MySQL服务,点击启动就ok了~~

解决MySQL连接问题:[08001] Could not create connection to database server. Attempted reconnect 3 times._第2张图片

下来就是见证奇迹 的时刻,重新打开数据库连接的配置,完成User,Password等等的输入,点击Test Connection,如果右侧出现绿色的小字Successful,那么就大功告成啦~~~撒花✿✿ヽ(°▽°)ノ✿

解决MySQL连接问题:[08001] Could not create connection to database server. Attempted reconnect 3 times._第3张图片

你可能感兴趣的:(2020)