📌  相关文章
📜  mysql.connector.errors.NotSupportedError:不支持身份验证插件'caching_sha2_password' - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:47.612000             🧑  作者: Mango

代码示例2
#To resolve this error just add auth_plugin 
import mysql.connector

mydb = mysql.connector.connect(
  host="localhost",
  user="username",
  password="password",
  database="db name",
  auth_plugin='mysql_native_password'
)