1251-Client does not support authentication protocol requested by server

报错:

Naticat11.1.13版本连接mysql8.0遇到报错:

1251-Client does not support authentication protocol requested by server

原因:

使用MySQL客户端Navicat连接数据库MySQL8.0,MySQL8.0 之前的版本中加密规则是mysql_native_password,而MySQL8.0,加密规则是caching_sha2_password

解决办法:

进入mysql执行:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123457';

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

原文连接:https://blog.csdn.net/you23hai45/article/details/102857551

posted @ 2021-05-12 11:15  小呆丶  阅读(311)  评论(0编辑  收藏  举报