使用django和navicat等连接MySQL出现错误:
【RuntimeError: 'cryptography' package is required for sha256_password or caching_sha2_password auth methods】
解决办法:
改变连接账户的密码验证方式:
sudo mysql -u root -p #使用sudo是因为ubuntu系统命令行,这里要使用root账户登录
use mysql #切换到mysql数据库
alter user '用户名'@'%' identified with mysql_native_password by '用户密码';
因篇幅问题不能全部显示,请点此查看更多更全内容