pycharm连接mysql是出现Connection to orm02@127.0.0.1 failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
程序员文章站
2022-07-04 09:38:53
下面这个问题反正我是遇到了,也是难为我好几天,于是我决定发一个教程出来给大家看看!希望能帮助你们 原因: 可能是数据库的版本与本机装的驱动不匹配导致的, 解决方案一: 在 url 后面街上一句 因为笔者亲自测试 可以解决 解决方案二: 重新安装驱动可以解决: ......
下面这个问题反正我是遇到了,也是难为我好几天,于是我决定发一个教程出来给大家看看!希望能帮助你们
原因:
可能是数据库的版本与本机装的驱动不匹配导致的,
解决方案一:
在 url 后面街上一句 因为笔者亲自测试 可以解决
?servertimezone=utc
解决方案二:
重新安装驱动可以解决:
下一篇: 开发--CentOS-7安装及配置
推荐阅读
-
pycharm连接mysql是出现Connection to orm02@127.0.0.1 failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
-
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
-
idea连接MySQL报错Could not create connection to database server. Attempted reconnect 3 times. Giving up.
-
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
-
pycharm连接mysql是出现Connection to orm02@127.0.0.1 failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
-
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.