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

1.打开MySQL:

cmd里 net start mysql

mysql -hlocalhost -uroot -p回车 进入mysql数据库

2.

命令如下:

1、use mysql;

2、alter user 'root'@'localhost' identified with mysql_native_password by '********';

3、flush privileges;

最后成功啦:

 

 

原文地址:https://www.cnblogs.com/caiyishuai/p/11920832.html