当前位置:网站首页>NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol
NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol
2022-04-23 11:52:00 【在奋斗的大道】
今天在Windows11 系统中安装了MySQL8 数据库,使用NativeForMySQL 连接MySQL8 数据库提示如下错误信息:
1251- Client does not support authentication protocol
网上说出现这种情况的原因是:mysql8 之前的版本中加密规则是mysql_native_password,而在mysql8之后,加密规则是caching_sha2_password,
解决办法:
方法1.升级navicat驱动;
方法2.把mysql用户登录密码还原成mysql_native_password.
以下演示使用方法2解决,具体操作步骤如下:
1.打开命令行小黑屏,进入MySQL的bin目录,然后输入mysql -u root -p,输入密码
2.再输入
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码,password为自定义密码
FLUSH PRIVILEGES; #刷新权限
3.输入刚刚修改的密码,再次测试连接,可以连接成功
版权声明
本文为[在奋斗的大道]所创,转载请带上原文链接,感谢
https://blog.csdn.net/zhouzhiwengang/article/details/124297293
边栏推荐
- Sofa weekly | excellent Committee of the year, contributor of this week, QA of this week
- Significance of actively participating in middle school robot competition
- Exploring the equipment and teaching of robot education
- 第四章 为IM 启用填充对象之为IM列存储启用ADO(IM 4.8)
- tensorflow常用的函数
- 解析幼儿教育中steam教育的融合
- Sigmoid function of activation function
- How does QT turn qwigdet into qdialog
- Simple construction of rebbitmq
- 零钱兑换II——【LeetCode】
猜你喜欢
Application of remote integrated monitoring system in power distribution room in 10kV prefabricated cabin project
运行报错:找不到或无法加载主类 com.xxx.Application
The way to change children's programming structure
Cognition and R & D technology of micro robot
1.Electron开发环境搭建
C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
激活函数之sigmoid函数
抓包整理————tcp 协议[八]
kettle复制记录到结果和从结果获取记录使用
rebbitMQ的简单搭建
随机推荐
解析社交性机器人对基础科学的作用
MQ在laravel中简单使用
How imeu is associated with imcu (IM 5.5)
第四章 为IM 启用填充对象之为IM列存储启用ADO(IM 4.8)
解读2022机器人教育产业分析报告
Laravel admin time range selector daterange default value problem
QT 64 bit static version display gif
Chapter 4 specifies the attribute of the inmemory column on the no inmemory table for im enabled filling objects: examples (Part IV of im-4.4)
Tensorflow common functions
SOFA Weekly | 年度优秀 Committer 、本周 Contributor、本周 QA
运行报错:找不到或无法加载主类 com.xxx.Application
怎么进行固定资产盘点,资产盘点报告如何一键生成
Compress the curl library into a sending string of utf8 and send it with curl library
使用连接组优化连接 (IM 6)
Maker education for primary and middle school students to learn in happiness
Golang's pen test questions & interview questions 01
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
golang之筆試題&面試題01
C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
Database design of simple voting system