Mysql 8.0 Navicat连接报 2059 - authentication plugin 'caching

xiaoxiao2021-02-28  49

安装Mysql 8.0后,使用Navicat连接不上,报"2059 - authentication plugin 'caching_sha2_password' ..."错误

解决方案:

在cmd中登录mysql

使用命令行:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';

原因是

mysql8之前的版本中加密规则为mysql_native_password,而在mysql8以后的加密规则为caching_sha2_password。

转载请注明原文地址: https://www.6miu.com/read-2612952.html

最新回复(0)