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

Source: Internet
Author: User

After MySQL has installed the latest version of 8.0.11 after creating the user and authorizing the user to connect to the database prompt

The server requested authentication method unknown to the client

After reviewing some relevant information, it is found that the new version of the MySQL account password unlock mechanism inconsistent caused by the

Workaround:

Delete the created user and authorization,

    1. Locate the MySQL configuration file and join
    2. Default_authentication_plugin=mysql_native_password

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

Or

    1. Mysql-uroot-p
    2. Use MySQL;
    3. ALTER USER ' root ' @' localhost ' identified with Mysql_native_password by ' your password ';

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.