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

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

  

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.

 

相关文章:

  • 2021-06-05
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2021-10-27
  • 2022-12-23
  • 2021-05-31
猜你喜欢
  • 2021-09-06
  • 2021-06-26
  • 2021-07-02
  • 2021-06-07
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案