When installing MySQL version 8.0, use front connection to report 1251 errors or Navicat connection error 2059 Solution

Source: Internet
Author: User
Tags mysql version

This error occurs because the encryption rule is mysql_native_password in the previous version of Mysql8, and the encryption rule after Mysql8 is caching_sha2_password.

There are two ways to fix this problem, one is to update the NAVICAT driver to resolve this issue, and one is to modify the encryption rules for MySQL user logons to Mysql_native_password. This article uses the second approach

      1. ALTER USER ' root ' @' localhost ' identified by ' password ' password EXPIRE never; #修改加密规则
      2. ALTER USER ' root ' @' localhost ' identified with Mysql_native_password by ' password '; #更新一下用户的密码
      3. FLUSH privileges; #刷新权限

When installing MySQL version 8.0, use front connection to report 1251 errors or Navicat connection error 2059 Solution

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.