RuntimeError: ‘cryptography‘ package is required for sha256_password or caching_sha2_password auth m

RuntimeError: ‘cryptography‘ package is required for sha256_password or caching_sha2_password auth m




通过pycharm链接mysql数据库时,查询表报错提示:

RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods

方法1:重启MySQL

① 以管理员身份,cmd中输入命令行“net start MySQL80”(根据安装的版本,MySQL80这里服务名称不一样),来启动mysql

在这里插入图片描述
② 输入 “mysql”,进入MySQL。

posted @   坦笑&&life  阅读(283)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
点击右上角即可分享
微信分享提示