Error: Authentication plugin 'caching_sha2_password' is not supported when Python connects to MySQL

raise errors.NotSupportedError( "Authentication plugin '{0}' is not supported".format(plugin_name)) E mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported

It is possible to link to the local database, but the server cannot be linked because the MySQL version of the server is too high, so...as follows

Open cmd and execute pip install mysql-connector-python

See Successfully installed mysql-connector-python-8.0.32 protobuf-3.20.3 is successful

Restart pacman after success

You're done, you can connect to the database

Guess you like

Origin blog.csdn.net/m0_57666466/article/details/129450385