错误提示如下:

1251-Client does not support authentication protocol requested by server; consider upgrading MySQL client

解决方法:

用管理员身份打开cmd,输入"mysql -u root -p [-h locahost -P 3306]"(中括号内是默认内容)回车输入root用户密码进入MySQL客户端,然后:

mysql> alter user [email protected] identified by 'newpassword' password expire never;

mysql> alter user [email protected] identified with mysql_native_password by 'newpassword';

mysql> flush privileges; 

MySQL 使用Navicat连接MySQL8出现1251错误

其中,"newpassword"是root用户新密码。

相关文章:

  • 2021-05-31
  • 2021-06-25
  • 2021-09-19
猜你喜欢
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2021-09-02
  • 2022-01-23
  • 2021-05-30
相关资源
相似解决方案