本文介绍了解决Navicat无法连接MySQL的问题,特别是当遇到“Client does not support authentication protocol requested by server”错误时的解决方案。通过在MySQL 8.0的命令行客户端中执行特定的SQL语句,更改root用户的认证方式为mysql_native_password,从而实现用新密码成功连接。
出错:Client does not support authentication protocol requested by server
在mysql 8.0 Command Line Client 输入如下:
alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘修改的密码’;
然后使用新修改的密码进行连接即可