欢迎投稿

今日深度:

pycharm连接mysql是出现Connection to orm02@127.0.0.1 failed. [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.,


下面这个问题反正我是遇到了,也是难为我好几天,于是我决定发一个教程出来给大家看看!希望能帮助你们 

 

 

原因:

  可能是数据库的版本与本机装的驱动不匹配导致的,

 

 

解决方案一:

      在 url 后面街上一句 因为笔者亲自测试 可以解决

?serverTimezone=UTC

  

 

 

解决方案二:

   重新安装驱动可以解决:

  

 

www.htsjk.Com true http://www.htsjk.com/Mysql/29802.html NewsArticle pycharm连接mysql是出现Connection to orm02@127.0.0.1 failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up., 下面这个问题反正我是遇到了,也是难为我好几天,于是我决定...
相关文章
    暂无相关文章
评论暂时关闭