当前位置:网站首页>Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
Nativeformysql connects to MySQL 8 prompt: 1251 - client does not support authentication protocol
2022-04-23 11:56:00 【On the road of struggle】
In today's Windows11 The system has MySQL8 database , Use NativeForMySQL Connect MySQL8 The database prompts the following error message :
1251- Client does not support authentication protocol
The Internet says the reason for this is :mysql8 In previous versions, the encryption rule was mysql_native_password, And in the mysql8 after , The encryption rule is caching_sha2_password,
terms of settlement :
Method 1. upgrade navicat drive ;
Method 2. hold mysql The user login password is restored to mysql_native_password.
The following demo uses Method 2 solve , The specific operation steps are as follows :
1. Open the command line small black screen , Get into MySQL Of bin Catalog , Then input mysql -u root -p, Input password

2. Input again
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; # Update the user's password ,password Custom password for
FLUSH PRIVILEGES; # Refresh the permissions

3. Enter the password you just changed , Test the connection again , Can connect successfully

版权声明
本文为[On the road of struggle]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231152214205.html
边栏推荐
- 外包干了五年,废了...
- IDEA 中 .properties文件的中文显示乱码问题的解决办法
- Win10 splash screen after startup
- IDEA 数据库插件Database Navigator 插件
- Blog post navigation (real-time update)
- 力扣-70.爬楼梯
- Tensorflow uses keras to create neural networks
- Castle.DynamicProxy实现事务单元控制
- 简易投票系统数据库设计
- Interpretation of 2022 robot education industry analysis report
猜你喜欢

How to count fixed assets and how to generate an asset count report with one click
![抓包整理————tcp 协议[八]](/img/ae/4957a997af725a1bf3f61cb24fc717.png)
抓包整理————tcp 协议[八]

面了一圈,整理了这套面试题。。

Exploring the equipment and teaching of robot education

Maker education for primary and middle school students to learn in happiness

Relu function of activation function

1.Electron开发环境搭建

Nacos Foundation (6): Nacos configuration management model

Nacos Foundation (7): Configuration Management

kettle复制记录到结果和从结果获取记录使用
随机推荐
Compress the curl library into a sending string of utf8 and send it with curl library
C# F23.StringSimilarity库 字符串重复度、文本相似度、防抄袭
初探 Lambda Powertools TypeScript
Application of remote integrated monitoring system in power distribution room in 10kV prefabricated cabin project
Resolution due to AMD not found_ ags_ x64. DLL, unable to continue code execution. Reinstallation of the program may solve this problem, Forza horizon 5
C# F23. Stringsimilarity Library: String repeatability, text similarity, anti plagiarism
VMware virtual machines export hard disk vmdk files using esxi
用户接口和IM表达式(IM 5.6)
golang之筆試題&面試題01
Master slave replication configuration of MySQL
Step function of activation function
Interpretation of biological recognition in robot programming course
Chapter 4: enable and disable im column storage for materialized view (IM 4.6)
MQ is easy to use in laravel
外包干了五年,废了...
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)
数据库如何填充IM表达式(IM 5.4)
零钱兑换II——【LeetCode】
Sigmoid function of activation function
MQ的了解