当前位置:网站首页>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
边栏推荐
- How Im expressions work (5.3)
- Nacos Basics (5): getting started with Nacos configuration
- Master slave replication configuration of MySQL
- Castle.DynamicProxy实现事务单元控制
- Next.js 静态数据生成以及服务端渲染的方式
- Redis learning 5 - high concurrency distributed lock practice
- [Web 每日一练] 八色拼图(float)
- Chapter 4: enable and disable im column storage for materialized view (IM 4.6)
- What is a gateway
- 2022 love analysis · panoramic report of industrial Internet manufacturers
猜你喜欢
简易投票系统数据库设计
The way to change children's programming structure
Step function of activation function
IFLYTEK's revenue in 2021 was 18.3 billion yuan: a year-on-year increase of 41% and a net profit of 1.556 billion yuan
Share two practical shell scripts
外包干了五年,废了...
2022 love analysis · panoramic report of industrial Internet manufacturers
激活函数之sigmoid函数
Interpretation of 2022 robot education industry analysis report
Laravel adds custom helper functions
随机推荐
Castle.DynamicProxy实现事务单元控制
How imeu is associated with imcu (IM 5.5)
Summary of convolution layer and pooling layer
Usage record of map < qstring, bool >
科创人·派拉软件CEO谭翔:零信任本质是数字安全,To B也要深研用户心智
Laravel adds custom helper functions
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)
激活函数之relu函数
Force buckle - 1137 Nth teponacci number
Yunna | fixed assets inventory supports multiple inventory methods (asset inventory)
如果你是一个Golang面试官,你会问哪些问题?
Step function of activation function
VMware virtual machines export hard disk vmdk files using esxi
使用连接组优化连接 (IM 6)
RebbitMQ的初步了解
ImportError: libX11. so. 6: cannot open shared object file: No such file or directory
ES6学习笔记二
Force buckle - 70 climb stairs
Compress the curl library into a sending string of utf8 and send it with curl library
Redis learning 5 - high concurrency distributed lock practice