当前位置:网站首页>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
边栏推荐
- 同态加密技术学习
- Castle.DynamicProxy实现事务单元控制
- PCB的注意事项
- NativeForMySQL 连接MySQL8 提示:1251- Client does not support authentication protocol
- The fourth chapter is the enable and disable columns of IM enabled fill objects (Part III of im-4.3)
- Analyze the rules for the use of robots with good performance
- Change exchange II - [leetcode]
- 激活函数之阶跃函数
- Tensorflow使用keras创建神经网络的方法
- Interpretation of 2022 robot education industry analysis report
猜你喜欢
欣旺达宣布电池产品涨价 此前获“蔚小理”投资超10亿
Design and practice of the smallest short website system in the whole network
简易投票系统数据库设计
Win10 splash screen after startup
远程访问家里的树莓派(上)
Database design of simple voting system
Siri gave the most embarrassing social death moment of the year
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
Relu function of activation function
Change exchange II - [leetcode]
随机推荐
kettle复制记录到结果和从结果获取记录使用
Optimize connections using connection groups (IM 6)
docker MySQL主从备份
Laravel增加自定义助手函数
Tclerror: no display name and no $display environment variable
Siri gave the most embarrassing social death moment of the year
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
ImportError: libX11.so.6: cannot open shared object file: No such file or directory
Analyze the rules for the use of robots with good performance
欣旺达宣布电池产品涨价 此前获“蔚小理”投资超10亿
Who said you should know PS? This open-source artifact can also be pulled in batch, and the effect is outstanding!
Win10 splash screen after startup
How the database fills in IM expressions (IM 5.4)
Yunna | fixed assets inventory supports multiple inventory methods (asset inventory)
Practical data Lake iceberg lesson 30 MySQL - > iceberg, time zone problems of different clients
Database design of forum system
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列存储启用ADO(IM 4.8)
Blog post navigation (real-time update)
Exploring the equipment and teaching of robot education