Client does not support authentication protocol problem resolution _php technique when mysql4.1 above version connection

Source: Internet
Author: User
Tags mysql client
Client does not support authentication protocol problem resolution when mysql4.1 above version connection
shell> MySQL
Client does not support authentication protocol requested
by server; Consider upgrading MySQL client

The official statement is
MySQL 4.1 and up uses the authentication protocol based on a password hashing algorithm this is incompatible with that used by older clients. .....


If you are experiencing the above problems after you upgrade MySQL to version 4.1, please make sure your MySQL client is 4.1 or later. (If there is a problem with windows, you can just skip to the solution below, because MySQL is installed with Windows client and server)
Please use one of the following two methods
One
Mysql> SET PASSWORD for
-> ' some_user ' @ ' some_host ' = Old_password (' newpwd ');
Second:
mysql> UPDATE mysql.user SET Password = Old_password (' newpwd ')
-> WHERE Host = ' some_host ' and User = ' some_user ';
mysql> FLUSH privileges;

The red section above please revise according to oneself actual situation ....
When you do this, the connection will be normal. @!

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.