import mysql.connector
mysql.connector.connect(auth_plugin='mysql_native_password', host=lis[0], database=lis[1], user=lis[2], password=lis[3])

auth_plugin='mysql_native_password'

Python连接MySQL报错:mysql.connector.errors.NotSupportedError: Authentication plugin ‘caching_sha2_password’ is not supported

https://blog.csdn.net/Bee_AI/article/details/102767400


import pymysql
pymysql.connect(host=lis[0], database=lis[1], user=lis[2], password=lis[3])

python:pyinstaller打包后,运行exe提示缺失包文件