Ask the Expert

MySQL error: Client does not support authentication...

I was installing php4.3.4.11 from FC2 CDs. I also installed MySQL 4.1.11. Now I have a problem; when connecting to MySQL via php I recieve this error:

client does not support authentication...."

In my phpinfo(); the version of mysql cilent was set 3.23.58, but when I want to upgrade it with the new one, "this package is already installed" was indicated. At first FC2 installed MySQL 3.23 for me, then I upgraded it.

    Requires Free Membership to View

Your copy of PHP was built using an older version of the MySQL client libraries that do not support the new password hashing algorithms used in MySQL version 4.1 and higher.

I answer this question on such a regular basis that I have a FAQ entry for it.

It details the cause and solution of the error you have encountered.

This was first published in June 2005

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: