美文网首页
Client does not support authenti

Client does not support authenti

作者: dshowing | 来源:发表于2018-08-02 14:37 被阅读194次

环境:

  • OS: Windows10 x64
  • django: 1.9.8
  • python: 2.7
  • mysql-python==1.2.5
  • mysql: 8.0.12

本地创建django项目,链接数据库的时候报错:

django.db.utils.OperationalError: (1251, 'Client does not support authentication protocol requested by server; consider upgrading MySQL client')

解决

根据stackoverflow里的问题,解决
本地登陆数据库:

mysql -u root -p 
> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'my_passwd';

相关文章

网友评论

      本文标题:Client does not support authenti

      本文链接:https://www.haomeiwen.com/subject/oiojvftx.html