连接MySql出现Client does not support authentication protocol requested by server错误
解决办法:
- 以管理员身份运行dos,并切换到MySql安装目录的bin目录,如图所示:
- 输入命令mysql -u root -h 127.0.0.1 -p登录到MySql(有密码的话继续输入密码并回车),如图所示:
- 输入命令use mysql;切换到mysql数据库,如图所示:
- 输入命令ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';,如图所示:
注意其中的 'root'@'%'中的%代表root用户对应的host值为%(%代表可以使用IP或localhost连接到MySql)、其中的123456代表MySql的登录密码 - 输入命令flush privileges刷新权限数据表,如图所示:
- 输入命令quit退出MySql登录,如图所示:
到此,连接出错的问题即可解决。
连接MySql出现Client does not support authentication protocol requested by server错误相关推荐
- 使用NodeJS连接到MySQL数据库Client does not support authentication protocol requested by server; consider upg
使用NodeJS连接到MySQL数据库时,运行项目,出现如下错误: throw err; // Rethrow non-MySQL errors^Error: ER_NOT_SUPPORTED_AUT ...
- 【吭】navicat 连接不上虚拟机上的mysql容器 client does not support authentication protocol requested by server;
参考解决方案: https://blog.csdn.net/yubin1285570923/article/details/83352491
- 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 ...
- Client does not support authentication protocol requested by server;
今天把服务器的MYSQL从4升级到了5.用phpmyadmin连接时出现下面错误 Client does not support authentication protocol requested b ...
- nodejs连接mysql数据库,报错Client does not support authentication protocol requested by server的解决方法
nodejs连接mysql数据库,报错Client does not support authentication protocol requested by server的解决方法 参考文章: (1 ...
- nodejs连接mysql报错:Client does not support authentication protocol requested by server; consider upgrad
由于本人是前端,mysql只是偶尔做一下小项目会用到,大概一年没有用了. 今天用mac通过brew下载了一个8.0.12版本的mysql;然后用egg进行连接,egg是阿里封装的一个nodejs框架. ...
- 【mysql】远程连接服务器数据库出现 Client does not support authentication protocol requested by server的解决方法
前言 之前已经配好了本地数据库与云服务器上的数据库的连接,也能正常进行操作.几个月后某天打开navicat想打开此连接却弹出了个错误提示窗口,显示Client does not support aut ...
- 解决: Client does not support authentication protocol requested by server; consider upgrading MySQL
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 在服务器上把 mysql 装好后,运行起来. 2. navicat 死活连接不上,在网上查说是 ...
- “1251 – Client does not support authentication protocol requested by server;consider upgrading MySQL
本文由 比特飞 原创发布,欢迎大家踊跃转载. 转载请注明本文地址:"1251 – Client does not support authentication protocol reques ...
- 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 ...
最新文章
- mysql linux改user_linux mysql误修改user表导致无法root用户登录,求大神帮助。-问答-阿里云开发者社区-阿里云...
- 比特币现金将出新招,推动比特币现金使用
- Exchange Log Collector Script
- Scribefire发CSDN博客
- 动态规划——0-1背包问题
- php裁剪图片白边,php生成缩略图自动填充白边例子
- Workstation-CentOS-XShell-YUM源 JAVA大数据Week5-DAY1-linux
- 【转】@JsonAlias和@JsonProperty注解使用详解
- 将excel多项式拟合公式放在python里重新计算结果完全不一样||excel线性拟合出来的公式明显不对||用excel拟合出多项式后python中带入值计算完全不对
- 使用 GreenSock 来制作 SVG 动画
- fedora9光盘挂载
- 《基于深度学习的自然语言处理》中文PDF+英文PDF+学习分析
- kali linux下的嗅探工具介绍
- 子查询定义从句总结(WITH AS 语句)
- “去哪儿”创始人兼总裁庄辰超专访实录
- 教学向|如何快速入门maya制作动画,萌新也能冲
- Three.js - 光源使用详解3(环境光 HemisphereLight、镜头光晕 LensFlare)
- 第九十六章 SQL函数 MOD
- cocos2dx之Box2D
- 【Linux学习笔记】20:Bash基础-历史命令