caching sha2 password is not supported mysql

前端 未结 7 1800
梦如初夏
梦如初夏 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:44

    I had the same problem

    "Authentication plugin '{0}' is not supported".format(plugin_name)) mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported"

    This happens because your Python connector does not support the authentication plugin caching_sha2_password and you need to update it. I fixed it by installing the correct Python connector from MySQL official site. Be sure to download the correct connector based on your operating system, MySQL version and the Python version you use.

提交回复
热议问题