1251 - Client does not support authentication protocol 解决办法
程序员文章站
2022-05-26 15:14:03
...
在docker中安装完mysql,能够连接本地localhost的,但是用Navicat连接远程ip时报错1251 - Client does not support authentication protocol (1251-客户端不支持服务器请求的认证协议),出现这个问题简单地说是因为安装mysql的版本太高了,导致mysql服务器要求的认证协议与客户端不一致,安装时我用的命令是:
docker pull mysql
使用这个命令下载的是最新版的mysql
所以我们需要将之前下载的mysql镜像删除,重新下载低版本的mysql
具体操作:
首先将mysql容器关闭,
docker stop 容器名/容器id
接下来查看所有的容器进程
docker ps -a
将有关mysql的容器全部删除
docker rm 容器名/容器id
将mysql镜像删除
docker rmi mysql
下载低版本的mysql(此处以5.7版本举例)
docker pull mysql:5.7
冒号后面是tag位,用来指定版本。
推荐阅读
-
MYSQL出现" Client does not support authentication "的解决方法
-
MYSQL出现" Client does not support authentication "的解决方法
-
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法
-
本地安装Mysql后,navicat链接异常:Clinet dose not support authentication protocol request by server ; consider upgrading MySQL client
-
mysql Client does not support authentication protocol requested by server; consider upgrading MySQL
-
用root用户登陆PHPmyAdmin出现Client does not support authentication ...
-
解决Navicat连接MySQL时“Client does not support authentication protocol requested by server; consider upgrading MySQL client”的问题
-
MYSQL出现" Client does not support authentication "
-
mysql4.1以上版本连接时出现Client does not support authentication protocol问题解决办法_php技巧
-
连接8.0.15mysql 报错 client does not support authentication protocol requested by server ,consider upgra