caching sha2 password is not supported mysql

前端 未结 7 1803
梦如初夏
梦如初夏 2020-12-06 07:37

i\'m trying to get my python program to insert data into MySQL and i followed a guide however i keep getting the error below.

\"Authentication plugin \'{0}\'

7条回答
  •  星月不相逢
    2020-12-06 07:46

    I was getting the exact same issue and tried to update the mysql-connector module with pip as suggested in the accepted answer, however that did not help. I realized that the problem might be related to my Anaconda environment, hence I tried using conda for updating my mysql-connector-python module.

    Finally I resolved this issue with the following command:

    conda install -c anaconda mysql-connector-python
    

    This seems to do what pip could not do, at least in my case. The link of the conda package is: https://anaconda.org/anaconda/mysql-connector-python

提交回复
热议问题