MySQL Connection error resolution (Error 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol ref used (client option ' Secure_a Uth ' enabled)

Source: Internet
Author: User

When a new version of MySQL is used, the old version of MySQL is connected, and it is possible to report:

ERROR 2049 (HY000): Connection using old (pre-4.1.1) authentication Protocol ref
Used (client option ' Secure_auth ' enabled) this error.

The reason for this is that the server-side password Management protocol is obsolete, using the old user password format storage, but the client upgrade followed by a new password format. The new version of MySQL will reject the connection if it encounters this inconsistency.

So in connection is: to set Secure_auth to False, that is, connect with--secure_auth=off, such as: Mysql-u User name-pip address-p port number--secure_auth=off can.

If you are using a MySQL workbench connection, such as

MySQL Connection error resolution (Error 2049 (HY000): Connection using old (pre-4.1.1) authentication protocol ref used (client option ' Secure_a Uth ' enabled)

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.