MySQL 8.0 error The server requested authentication method unknown to the client solution

MySQL 8.0 error The server requested authentication method unknown to the client solution

After installing the latest version 8.0.11 of mysql, create a user and authorize it. The authorized user is prompted to connect to the database

The server requested authentication method unknown to the client

After consulting some relevant information, I found that it was caused by the inconsistency of the unlocking mechanism of the new version of MySQL account password.

Solution:

Delete the created users and authorizations.

  1. Find the mysql configuration file and add
  2. default_authentication_plugin=mysql_native_password

Change to the original authentication method, then create a new user and authorize

or

mysql -uroot -p
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your password';

The above is the solution to this error. If you have a better solution, please leave a message on the 123WORDPRESS.COM WeChat public account. Thank you for your support of 123WORDPRESS.COM.

You may also be interested in:
  • Python uses QQ mailbox to send emails and reports smtplib.SMTPAuthenticationError
  • Detailed explanation of the use of Django authentication system
  • Java Jedis NOAUTH Authentication required problem solution
  • How to solve the NOAUTH Authentication required exception of redis
  • Springboot+Oauth2 implements custom AuthenticationManager and authentication path
  • HTTP Basic Authentication JAVA Example Code
  • After form authentication is passed, you can only use FormsAuthentication.RedirectFromLoginPage
  • How does Spring Security obtain user information based on Authentication?

<<:  How to use echarts to visualize components in Vue

>>:  Detailed explanation of commands to view linux files

Recommend

Steps to encapsulate the carousel component in vue3.0

Table of contents 1: Encapsulation idea 2. Packag...

How to use Typescript to encapsulate local storage

Table of contents Preface Local storage usage sce...

Dynamic starry sky background implemented with CSS3

Result:Implementation Code html <link href=...

Detailed steps and problem solving methods for installing MySQL 8.0.19 on Linux

I recently bought a Tencent Cloud server and buil...

Why web page encoding uses utf-8 instead of gbk or gb2312?

If you have a choice, you should use UTF-8 In fac...

Several mistakes that JavaScript beginners often make

Table of contents Preface Confusing undefined and...

Example of using nested html pages (frameset usage)

Copy code The code is as follows: <!DOCTYPE ht...

Detailed explanation of the role of static variables in MySQL

Detailed explanation of the role of static variab...

Differences between Windows Server 2008R2, 2012, 2016, and 2019

Table of contents Common version introduction Com...