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

上一篇:idea scala环境安装


下一篇:SpringBoot项目测试类运行错误:java.lang.NoClassDefFoundError: org/springframework/util/Assert