当前位置:网站首页>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
边栏推荐
- Tensorflow使用keras创建神经网络的方法
- Win10 splash screen after startup
- QT 64 bit static version display gif
- 1. Construction of electron development environment
- ImportError: libX11.so.6: cannot open shared object file: No such file or directory
- docker MySQL主从备份
- Use kettle to copy records to and get records from results
- Interpretation 3 of gdpr series: how do European subsidiaries return data to domestic parent companies?
- ES6学习笔记二
- Im architecture: CPU architecture: SIMD vector processing (im-2.3)
猜你喜欢

Interpretation of biological recognition in robot programming course

Siri gave the most embarrassing social death moment of the year

Use kettle to copy records to and get records from results
![A detailed explanation of head pose estimation [collection of good articles]](/img/59/6ac8692b0dbd0218bb512c5eac3124.png)
A detailed explanation of head pose estimation [collection of good articles]

Redis learning 5 - high concurrency distributed lock practice

VMware virtual machines export hard disk vmdk files using esxi

IDEA 中 .properties文件的中文显示乱码问题的解决办法

激活函数之阶跃函数

Database design of forum system

激活函数之sigmoid函数
随机推荐
魔域来了H5游戏详细图文架设教程
Laravel adds custom helper functions
kettle复制记录到结果和从结果获取记录使用
thinkphp 添加图片文字水印生成带二维码的推广海报
The fourth chapter is to enable the filling object of IM and enable ADO for im column storage (IM 4.8)
简易投票系统数据库设计
九十八、freemarker框架报错 s.e.ErrorMvcAutoConfiguration$StaticView : Cannot render error page for request
tensorflow常用的函数
第四章 为IM 启用填充对象之启用和禁用表空间的IM列存储(IM 4.5)
Force buckle - 70 climb stairs
Fabric 1.0 source code analysis (33) implementation of peer channel command and subcommand
Golang's pen test questions & interview questions 01
Change exchange II - [leetcode]
Chapter 4 is a tutorial on forced filling of in memory objects with IM enabled filling objects (IM 4.7)
ES6学习笔记二
laravel 永远返回 JSON 响应
初探 Lambda Powertools TypeScript
A detailed explanation of head pose estimation [collection of good articles]
力扣-70.爬楼梯
ES6 learning notes II