版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
python3.5连接mysql8.0.11 出现 mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported 错误。
原因是因为mysql8.0.11使用了Use Strong Password Encryption for Authentication即强密码加密。
解决方法有两种:1:重装mysql,将Use Strong Password Encryption for Authentication改为Use Legacy Authentication Method(在Authentication Method中改) 2:因为python3.5以下不支持caching_sha2_password,可使用python3.6进行连接。