使用MySQL Connector将python与mysql连接时出错

时间:2018-10-06 19:39:57

标签: python mysql anaconda mysql-python

import mysql.connector

mydb = mysql.connector.connect(
host='localhost',
port='3306',
user="root",
passwd="123456789")
print(mydb)

我正在尝试使用MySQL连接器与MySQL连接。当我在anaconda中运行以下代码时,出现以下错误:

NotSupportedError:不支持身份验证插件“ caching_sha2_password”

0 个答案:

没有答案