解决:RuntimeError: cryptography is required for sha256_password or caching_sha2_password
生活随笔
收集整理的這篇文章主要介紹了
解决:RuntimeError: cryptography is required for sha256_password or caching_sha2_password
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
現象:Python連接MySQL數據庫出現
RuntimeError: cryptography is required for sha256_password or caching_sha2_password
解決:安裝cryptography
pip install cryptography
原因:
為了提供更安全的密碼加密,MySQL8.0的首選默認認證插件是caching_sha2_password,而不是mysql_native_password。
總結
以上是生活随笔為你收集整理的解决:RuntimeError: cryptography is required for sha256_password or caching_sha2_password的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下三大最佳的开源视频播放器
- 下一篇: Qt警告提示:找不到“stddef.h”