“1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL
本文由 比特飞 原创发布,欢迎大家踊跃转载。
转载请注明本文地址:“1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL client.”的解决方案 | .Net中文网。
另外可参考文章:“The server requested authentication method unknown to the client.”的解决方案。
描述
最近在使用 navicat 连接 mysql 数据库时,遇到如下的报错信息:
1251 - Client does not support authentication protocol requested by server;consider upgrading MySQL client.
解决
发生这个问题的原因是在 mysql 8.0 以后,caching_sha2_password是默认的身份验证插件,而不是以往的mysql_native_password。有以下两个解决方案。
1、修改默认身份验证插件
在 MySQL Command Line 工具下修改 mysql 的默认身份验证插件即可。
mysql - uroot - p--使用用户名密码登录 mysqlUSE mysql;--使用 mysql 数据库ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '12345678';--修改身份验证插件,假设用户名为 root,密码为 12345678(请改为你自己的用户名和密码)。FLUSH PRIVILEGES;--使更改生效
2、升级连接工具
如果仅仅是要连接数据库,而不是以代码方式访问数据库,那么可以直接升级数据库连接工具到最新版本即可解决该问题。
本文由 比特飞 原创发布,欢迎大家踊跃转载。
转载请注明本文地址:“1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL client.”的解决方案 | .Net中文网。
“1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL相关推荐
- 解决: Client does not support authentication protocol requested by server; consider upgrading MySQL
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 在服务器上把 mysql 装好后,运行起来. 2. navicat 死活连接不上,在网上查说是 ...
- Client does not support authentication protocol requested by server; consider upgrading MySQL client
错误一 Communications link failure due to underlying exception 这说明客户端连接数据库失败,是网络都连不上,不是密码错误连不上,需要检查ip.p ...
- Client does not support authentication protocol requested by server;consider upgrading MySQL
Client does not support authentication protocol requested by server;consider upgrading MySQL 在测试node ...
- 【终极办法】Client does not support authentication protocol requested by server; consider upgrading mysql
1. 进入Mysql, 输入账号密码登录. 2. 更改加密方式: mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PA ...
- Client does not support authentication protocol requested by server;
Navicat连接MySQL Server8.0版本时出现Client does not support authentication protocol requested by server:解决 ...
- Navicat连接MySQL8.0版本时出现Client does not support authentication protocol requested by server;报错的问题解决办法
Windown系统下 遇到 Navicat连接MySQL8.0版本时出现Client does not support authentication protocol requested by ser ...
- navicat连不上mysql client does not support authentication protocol requested by server; consider upgrad
当通过windows主机navicat连接虚拟的mysql时报如下错误.Client does not support authentication protocol requested by ser ...
- 终极解决navicat远程mysql8报错 1251 Client does not support authentication protocol requested by server
朋友使用mysql8,跟我讲不能远程了,看了一下,环境变量没配, MYSQL_HOME=mysql安装bin目录 PATH追加%MYSQL_HOME% 配了环境变量还不行 于是发现一个惊天大秘密 就是 ...
- 【吭】navicat 连接不上虚拟机上的mysql容器 client does not support authentication protocol requested by server;
参考解决方案: https://blog.csdn.net/yubin1285570923/article/details/83352491
最新文章
- META Header
- html 显示不吃,长期不吃晚饭,或有4个变化出现,自查一下,看看你占了几个
- 记一次递归在我项目中所发挥的作用
- 基于Fork/Join框架实现对大型浮点数数组排序(归并算法和插入排序算法)
- 蚂蚁海图切片工具linux版本,Web海图服务软件 - 海图在线
- 《几何与代数导引》例2.9
- SWF反编神器Action Script Viewer终身免费升级!
- android自动化必备之界面元素
- android pokemon go,安卓Pokemon GO懒人版
- html基础之背景属性
- String转LocalDateTime
- MyBatis官方文档——XML配置部分
- 《极客时间:代码精进之路》学习笔记
- 基于Springboot+mybatis+lyaui实现学科竞赛管理系统【详细设计--附完整源码】
- 硬核干货 | 人脸识别的原理是什么?
- 产品经理修炼之道读后感
- python构建配对t检验(Paired Student’s t-test)
- 深入理解Java虚拟机——Parallel Old收集器
- 计算机主板扩展槽,主板上这多扩展插槽,都是干什么用的,看了不后悔
- 问题沟通以及反馈的原则 - BEST