使用pymysql连接MySql数据库报错RuntimeError:
'cryptography' package is required for sha256_password or caching_sha2_password auth methods

该错误提示的意思是:sha256_password和caching_sha2_password两种加密方式需要cryptography。
所以只需要安装一下cryptography包就可以了:
pip install cryptography

安装完成后,重新执行, 就ok了。
本文讲述了在使用pymysql连接MySQL数据库时遇到的RuntimeError,焦点在于解决'cryptography'包对于sha256_password和caching_sha2_password加密方法的依赖。通过安装cryptography包并重新执行,问题得以解决。
3991

被折叠的 条评论
为什么被折叠?



