Pycharm连接MySQL报错:RuntimeError: cryptography is required for sha256_password or caching_sha2_password

笔记:
通过pycharm链接mysql数据库时,遇到以下错误提示:
Pycharm连接MySQL报错:RuntimeError: cryptography is required for sha256_password or caching_sha2_password
该错误提示的意思是sha256_password和caching_sha2_password两种加密方式需要cryptography
在这里只需要安装一下cryptography包就可以了: pip install cryptography

Pycharm连接MySQL报错:RuntimeError: cryptography is required for sha256_password or caching_sha2_password_第1张图片

你可能感兴趣的:(python,mysql,python,sql)