Remote connection Mysql8.0,error no.2058 Plugin Caching_sha2_password could not being loaded

Source: Internet
Author: User

By local to connect the remote MySQL times wrong, the reason when mysql8.0 encryption method changed.

mysql8.0 by default with the Caching_sha2_password encryption method

    This type of encryption is not supported by third-party clients, and only the command-line support that comes with it

So you need to change the encryption method.

First go to MySQL command line

[Email protected] ~]# mysql-u root-p
Enter Password:

First step: Change the encryption method

ALTER USER ' root ' @ ' localhost ' identified by ' [email protected] ' PASSWORD EXPIRE never;

Step Two: re-modify the password

ALTER USER ' root ' @ '% ' identified with Mysql_native_password by ' [email protected] ';

Step three: refresh (do not do so may not be effective)

FLUSH privileges;

    

You can then connect successfully.

    

    

    

    

Remote connection Mysql8.0,error no.2058 Plugin Caching_sha2_password could not being 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.