mysql4.1 client does not support authentication prot_php tutorial when connecting over version

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

The official argument is that
MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that's incompatible with that used by older clients. .....


If you experience the above issues after upgrading MySQL to 4.1 or above, make sure your MySQL client is 4.1 or higher. (If there is a problem with windows, you just jump to the solution, because MySQL is installed on Windows with the 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 part above please amend according to your actual situation ....
When you do this, the connection will be normal @!

http://www.bkjia.com/PHPjc/318004.html www.bkjia.com true http://www.bkjia.com/PHPjc/318004.html techarticle mysql4.1 Clientdoesnotsupportauthenticationprotocol Problem resolution when connecting over version Shellmysql clientdoesnotsupportauthenticationprotocolrequested Byserver;considerupgra ...

  • 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.