Navicat Connection mysql8:2059 Authentication plugin ' Caching_sha2_passord ' Can not is loaded

Source: Internet
Author: User

mysql8.0 installed on the computer today , with the navicat connection when the following error occurred:

This is because MySQL 8.0 defaults to using the Caching_sha2_password authentication mechanism- from the original Mysql_native_password to caching_sha2_ Password upgrading from 5.7 to version 8.0 does not change the authentication method for existing users, but new users will use the new Caching_sha2_password by default.

Here's how to fix it:

Log in with MySQL 8.0 Command line Client-unicode,

Then use the command:alter user ' root ' @ ' localhost ' identified with mysql_native_password by ' root '; password update;

Navicat connected again, successful.

Navicat Connection mysql8:2059 Authentication plugin ' Caching_sha2_passord ' Can not is loaded

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.