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;

 

最后成功啦:

 

 

 

 

 

posted on 2019-11-23 23:33  蔡军帅  阅读(505)  评论(0编辑  收藏  举报