Pycharm连接MySQL报错:RuntimeError: cryptography is required for sha256_password or caching_sha2_password
报错如下:
报错原因:MySQL8.0版本以后采用caching_sha2_password作为默认的身份验证插件。
解决方法:
1. 登录mysql:
mysql>mysql -u root -p
Enter password:
2. 查询用户密码:
mysql> select host,user,authentication_string from mysql....
原创
2019-01-08 12:01:06 ·
13699 阅读 ·
10 评论