PyMySQL Access Denied “using password (no”) but using password

守給你的承諾、 提交于 2019-12-01 22:07:50

Resolved the issue after downgrading MySQL from 8.0.11.0 to 5.7.22.

In addition to what I listed in my original question, I also tried the following:

  • Installed lower version of PyMySQL (0.8.1 to 0.8.0 in my case)
  • Completely removed both versions of PyMySQL and installed v0.8.0
  • Removed MySQL 8.0 and reinstalled

When none of the above worked, I downgraded MySQL to v5.7, which is what one of my peers is using. That resolved the error.

That is strange. I would install pymysql in a virtual environment and then drop some debugging lines in this function:

https://github.com/PyMySQL/PyMySQL/blob/master/pymysql/connections.py#L940

That should show what variables its actually using for the connection and make it obvious what is wrong.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!