Troubleshooting of mysql odbc configuration errors

Source: Internet
Author: User

"Client does not support authentication protocol requested by server "?

"Client does not support authentication protocol requested by server" is displayed when you install MySQL or a later version ".

Mysql 4.1 and later versions use the new password algorithm, while PHP does not support the new algorithm. Therefore, after a new user is added, you must use the following method to solve the problem that PHP cannot connect to Mysql: (some_user, some_host, and newpwd are the user name, host, and password of your database respectively)

Solution 1:

Mysql> SET PASSWORD

-> 'Some _ user' @ 'some _ host' = OLD_PASSWORD ('newpwd ');

For example, the database user is admin, the host is localhost, And the password is 123456.

At this time, the input command should be:

Mysql> set password for admin @ localhost = OLD_PASSWORD ('20140901 ');

Solution 2:

Mysql> UPDATE mysql. user SET Password = OLD_PASSWORD ('newpwd ')

-> WHERE Host = 'some _ host' AND User = 'some _ user ';

Mysql> flush privileges;

Solution 3 (not recommended)

Use the -- old-passwords option to enable mysqld, and then use the following method to change the original user

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.