MySQL Old password error error:2049 (Cr_secure_auth)

Source: Internet
Author: User

The error prompts are as follows

error:2049 (Cr_secure_auth)

Message:connection using old (pre-4.1.1) authentication protocol refused (client option ' Secure_auth ' enabled)

Error: 2049 (Cr_secure_auth)
Message: Connection request denied using old password encryption (earlier than 4.1.1) (server turned on client ' secure_auth ' option to prohibit link for account with 16-bit password encryption).


workaround See::

The code is as follows Copy Code
Mysql-u root-pxxxxxx
mysql> use MySQL;
Mysql> SELECT * from user where user= ' xxxx ';


Now, the password encryption is the 16-bit old password.

The code is as follows Copy Code
0364fed5542b42b3


Re-modify the password

The code is as follows Copy Code
mysql-> Update user set Password=password (' 123 ') where user= ' xxx '


Look again, the password is the new password.

The code is as follows Copy Code


Mysql> SELECT * from user where user= ' xxxx ';
*2a2e28094d7b28d4a11108714fe913b0d40512d6


Finally remember to refresh the authorization table

The code is as follows Copy Code
mysql> flush Privileges;

The

is actually reset the password.

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.