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

Posted 严少来也

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Client does not support authentication protocol requested by server; consider upgrading MySQL client相关的知识,希望对你有一定的参考价值。

一、问题描述

Linux云服务器上新安装的java运行环境,在tomcat中加入war进行运行时,出现下面这个错误:

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

二、解决办法如下

(1)第一步,使用如下命令进入到mysql服务当中。

mysql -u root -p

(2)第二步,使用如下命令。

alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘你的数据库密码’;

(3)第三步,刷新MySQL的系统权限。

flush privileges;

至此,问题已解决。

以上是关于Client does not support authentication protocol requested by server; consider upgrading MySQL client的主要内容,如果未能解决你的问题,请参考以下文章

client does not support authentication

mysql服务设置远程连接 解决1251 client does not support ..问题

client does not support authentication

docker mysql Client does not support

Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by serv

ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol ...以及如何打开MySQL终端。