Navicat连接mysql8.0.1版本出现1251--Client does not support authentication protocol requested by server的解决
转载自:https://blog.csdn.net/XDMFC/article/details/80263215
好不容易安装好mysql,但又出现了mysql客户端版本太低的问题。根据参考的这篇博客,完美的解决了该问题。
1、通过命令行进入解压的mysql根目录下。
2、登陆数据库
mysql -uroot -p
3、再输入root的密码:
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 8.0.11 MySQL Community Server - GPL
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
4、更改加密方式:
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
5、更改密码:该例子中 123为新密码
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';
6、刷新:
mysql> FLUSH PRIVILEGES;
这步完成后我已经成功解决了问题。如果报错,可以看下面第7步,博主依然给出了解决方案
7、
// 如果报错ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'%':
则是远程访问权限不正确,先选择数据库,查看一下再更改:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
mysql> use mysql;
Database changed
mysql> select user ,host from user ;
+ ------------------+-----------+
| user | host |
+ ------------------+-----------+
| mysql.infoschema | localhost |
| mysql.session | localhost |
| mysql.sys | localhost |
| root | localhost |
+ ------------------+-----------+
5 rows in set (0.00 sec)
|
最后,感谢参考的该博主。此次转载只希望帮助更多的人,毕竟在犄角旮旯里找到这个方案不容易。若有人想要转载,请注明原博主,谢谢。
Navicat连接mysql8.0.1版本出现1251--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 ...
- “1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL
本文由 比特飞 原创发布,欢迎大家踊跃转载. 转载请注明本文地址:"1251 – Client does not support authentication protocol reques ...
- nodejs连接mysql数据库,报错Client does not support authentication protocol requested by server的解决方法
nodejs连接mysql数据库,报错Client does not support authentication protocol requested by server的解决方法 参考文章: (1 ...
- 【mysql】远程连接服务器数据库出现 Client does not support authentication protocol requested by server的解决方法
前言 之前已经配好了本地数据库与云服务器上的数据库的连接,也能正常进行操作.几个月后某天打开navicat想打开此连接却弹出了个错误提示窗口,显示Client does not support aut ...
- 终极解决navicat远程mysql8报错 1251 Client does not support authentication protocol requested by server
朋友使用mysql8,跟我讲不能远程了,看了一下,环境变量没配, MYSQL_HOME=mysql安装bin目录 PATH追加%MYSQL_HOME% 配了环境变量还不行 于是发现一个惊天大秘密 就是 ...
- Navicat连接Mysql 8.0.16报错:Client does not support authentication protocol requested by server?
解决方法的命令如下: 切换到mysql安装目录下 :C:\Program Files\MySQL\MySQL Server 8.0\bin 登录进去执行以下命令 use mysql; alter us ...
- 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 ...
- nodejs连接mysql报错:Client does not support authentication protocol requested by server; consider upgrad
由于本人是前端,mysql只是偶尔做一下小项目会用到,大概一年没有用了. 今天用mac通过brew下载了一个8.0.12版本的mysql;然后用egg进行连接,egg是阿里封装的一个nodejs框架. ...
- MySQL 8.0 - Client does not support authentication protocol requested by server....
我在用 MySQL数据库 连接 node.Js 的时候,发生的错误: const mysql = require('mysql')// 创建连接对象 const con = mysql.createC ...
- SQLyog连接MYSQL时报错 Client does not support authentication protocol requested by server; consider upgra
之前安装MYSQL8.0的时候安装的是绿色版,在cmd中配置完所有参数之后,在连接SQLyog的时候却报出了以下错误 翻译一下大致的意思为:客户端不支持服务器请求的身份验证协议:考虑升级MYSQL客户 ...
最新文章
- Python RPi GPIO编程控制
- 彻底搞懂基于LOAM框架的3D激光SLAM全套学习资料汇总!
- stm32滴答计时器_stm32中的系统滴答定时器使用
- createSQLQuery与createQuery的区别
- scala学习-11-package object
- centos 安装maven_安装及使用Jenkins
- SAP License:ERP项目经理需求调研的惨痛经历
- 2019一级计算机等级考试试题,2019年全国计算机等级考试一级练习试题及答案(一)...
- new 动手学深度学习V2环境安装
- 区块链共识问题都有什么?
- Zephyr在编译时将二进制文件转化成c语言数组
- matlab 找到数组中第一个不连续点_MATLAB新手入门篇1(基础)
- ojdbc7、8在maven环境中的配置异常及处理
- 基于C语言的个人信息管理系统
- bp神经网络模型的优缺点,什么是BP神经网络模型?
- mysql左联和右联_MySQL左联、右联查询接where和and条件的区别
- Cass10.1独立地物简码识别功能
- Python 中点法求积分
- js取小数点后两位 方法总结
- 修改本机的 Host 文件