Python连接MySQL报错Authentication plugin ‘caching_sha2_password‘ is not supported

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

链接本地数据库是可以的,但是无法链接服务器,因为服务器的MySQL版本太高了,所以...如下

打开cmd执行pip install mysql-connector-python

看到Successfully installed mysql-connector-python-8.0.32 protobuf-3.20.3才是成功了

成功之后重启pacman

大功告成可以连上数据库了

猜你喜欢

转载自blog.csdn.net/m0_57666466/article/details/129450385