简体   繁体   中英

MySQL connector error: "Authentication plugin 'caching_sha2_password' is not supported"

import mysql.connector

mydb = mysql.connector.connect(

    host="localhost",
    user="root",
    password="henry123test",
    )

This was the error returned

mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported.

Can anyone help me, been googling for some time now.

usethis without end dot 你的问题将得到解决 pip3 install mysql-connector-python

你可以试试: pip3 install mysql-connector-python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM