mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported
应该是mysql-connector出了问题
首先卸载掉mysql-connector:
pip uninstall mysql-connector
再把mysql-connector-python卸载掉
pip uninstall mysql-connector-python
重新安装mysql-connector-python
pip install mysql-connector-python