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

后端 未结 2 459
自闭症患者
自闭症患者 2021-01-18 21:31

Headscratcher here for me.

I am attempting to connect to a database on my local MySQL 8.0.11.0 install from Python.

Here\'s the code I\'m u

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 22:01

    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.

提交回复
热议问题