473,468 Members | 1,371 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Error: Client does not support authentication protocol

I don't know if this is a PHP problem or a MySQL problem - hopefully,
someone here can give me a clue.

I am getting the subject error when I try to connect to MySQL from a
PHP page.

$conn = mysql_connect( $domain, $user, $password );

I'm using PHP 5.0.1 and MySQL Server: 4.1.9; Client: 5.0.0
Running on Windows XP (IIS, of course)

According to the MySQL Reference Manual, this problem occurs only when
using client programs older than 4.1.1. I'm not sure what they mean by
"client programs". Is PHP the "client" in my situation?

Help?

Jul 17 '05 #1
5 1970
On Sun, 13 Feb 2005 08:30:05 -0700, Martin <ma**********@comcast.net>
wrote:
I don't know if this is a PHP problem or a MySQL problem - hopefully,
someone here can give me a clue.

I am getting the subject error when I try to connect to MySQL from a
PHP page.

$conn = mysql_connect( $domain, $user, $password );

I'm using PHP 5.0.1 and MySQL Server: 4.1.9; Client: 5.0.0
Running on Windows XP (IIS, of course)

According to the MySQL Reference Manual, this problem occurs only when
using client programs older than 4.1.1. I'm not sure what they mean by
"client programs". Is PHP the "client" in my situation?

Help?


While looking at the "PHPIno.php" page, I found, in the "MySQL"
section, this entry: Client API Version 3.23.57

I assume this is what is out of date. What is it referring to, a DLL
somewhere? How do I update it? Is this a PHP thing or MySQL?

As noted above, the MySQL Administrator shows the "Client" at version
5.0.0.


Jul 17 '05 #2
On Sun, 13 Feb 2005 09:09:10 -0700, Martin <ma**********@comcast.net> wrote:
On Sun, 13 Feb 2005 08:30:05 -0700, Martin <ma**********@comcast.net>
wrote:
I don't know if this is a PHP problem or a MySQL problem - hopefully,
someone here can give me a clue.

I am getting the subject error when I try to connect to MySQL from a
PHP page.

$conn = mysql_connect( $domain, $user, $password );

I'm using PHP 5.0.1 and MySQL Server: 4.1.9; Client: 5.0.0
Running on Windows XP (IIS, of course)

According to the MySQL Reference Manual, this problem occurs only when
using client programs older than 4.1.1. I'm not sure what they mean by
"client programs". Is PHP the "client" in my situation?

Help?


While looking at the "PHPIno.php" page, I found, in the "MySQL"
section, this entry: Client API Version 3.23.57

I assume this is what is out of date. What is it referring to, a DLL
somewhere? How do I update it? Is this a PHP thing or MySQL?


PHP comes bundled with a MySQL client library. Older versions of PHP
(including 5.0.1) came with 3.23.57, as a lowest common denominator that'll
worked with most versions of MySQL; up until they changed the password hashing
stuff.

The php_mysql.dll interface between PHP and MySQL, as built in the binary
distribution for Windows, only worked with this older version, since it linked
against a function that doesn't exist in newer MySQLs.

I believe this has been addressed in 5.0.3, which bundles a newer MySQL client
(4.1.7), or you can use your own if you have that earlier in the PATH.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #3
On Sun, 13 Feb 2005 16:32:55 +0000, Andy Hassall <an**@andyh.co.uk>
wrote:
On Sun, 13 Feb 2005 09:09:10 -0700, Martin <ma**********@comcast.net> wrote:
On Sun, 13 Feb 2005 08:30:05 -0700, Martin <ma**********@comcast.net>
wrote:
I don't know if this is a PHP problem or a MySQL problem - hopefully,
someone here can give me a clue.

I am getting the subject error when I try to connect to MySQL from a
PHP page.

$conn = mysql_connect( $domain, $user, $password );

I'm using PHP 5.0.1 and MySQL Server: 4.1.9; Client: 5.0.0
Running on Windows XP (IIS, of course)

According to the MySQL Reference Manual, this problem occurs only when
using client programs older than 4.1.1. I'm not sure what they mean by
"client programs". Is PHP the "client" in my situation?

Help?


While looking at the "PHPIno.php" page, I found, in the "MySQL"
section, this entry: Client API Version 3.23.57

I assume this is what is out of date. What is it referring to, a DLL
somewhere? How do I update it? Is this a PHP thing or MySQL?


PHP comes bundled with a MySQL client library. Older versions of PHP
(including 5.0.1) came with 3.23.57, as a lowest common denominator that'll
worked with most versions of MySQL; up until they changed the password hashing
stuff.

The php_mysql.dll interface between PHP and MySQL, as built in the binary
distribution for Windows, only worked with this older version, since it linked
against a function that doesn't exist in newer MySQLs.

I believe this has been addressed in 5.0.3, which bundles a newer MySQL client
(4.1.7), or you can use your own if you have that earlier in the PATH.


Andy - thanks.

I'll look into updating to 5.0.3

In the meantime, I got this working. I read a couple of things on
MySQL about setting an ini file value: "old_passwords", but I couldn't
seem to get it to have any effect.

What they didn't say was that, after setting this value, the passwords
themselves need to be re-entered.

More significantly, though, and what I had to learn the hard way, was
that "old_passwords" is apparently NOT the correct value to put in the
ini file! While trying to figure all this out, I noticed that
MySQLAdmin allows one to set a checkbox that adds/removes this value
from the ini file. But, it writes the value as "old-passwords" (notice
the dash instead of the underscore). When I did this, it started
working!

I don't see "old-passwords" anywhere in the MySQL documentation - only
"old_passwords". Granted, I didn't do an exhaustive search but
still...
Jul 17 '05 #4
Martin

I'm trying to work through this same problem. Frustrating isn't it.

Sadly I find that when I set the use old passwords option in MySQL
Administrator is still doesn't help. But I'm interested in your
comment about re-entering the passwords. Where did you do that? In
the php.ini file or in MySQL Administrator.

Feel like I might just be getting a little closer to the answer here
so would appreciate your help.

Thx
Debbie
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 17 '05 #5
On 2005-02-13 10:30:05 -0500, Martin <ma**********@comcast.net> said:
I don't know if this is a PHP problem or a MySQL problem - hopefully,
someone here can give me a clue.

I am getting the subject error when I try to connect to MySQL from a
PHP page.
$conn = mysql_connect( $domain, $user, $password );

I'm using PHP 5.0.1 and MySQL Server: 4.1.9; Client: 5.0.0 Running on
Windows XP (IIS, of course)

According to the MySQL Reference Manual, this problem occurs only when
using client programs older than 4.1.1. I'm not sure what they mean by
"client programs". Is PHP the "client" in my situation?
Help?


from the command line under mysql you can simply change to password to
be stored in the old format using a variant of the set password =
OLD_PASSWORD('somepassword');

or you can begin coding with the mysqli stuff...

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ME | last post by:
Just thought I would post a solution (temporary at best, but a solution at least.) for all those using PostNuke who have upgraded MySql to 4.1. I have had problems with PostNuke logging into MySql...
1
by: Thomas | last post by:
Hallo. Habe auf einem SeSE 9.1 Server due neue MySQL 4.1.11 und den dazugehörigen client installiert. #: mysql -V mysql Ver 14.7 Distrib 4.1.11, for pc-linux-gnu (i686) Soweit so gut der...
7
by: Darren Bennett | last post by:
I have an ASP.NET web application that has been running fine for 18 months. Suddenly the other day I started getting the following error: "An error occurred while try to load the string...
7
by: | last post by:
Hi all, I have a simple .aspx page running on net 2.0 that is trying to do a http post to a remote server. Here is the code Private Function ProcessRequests(ByVal strbody As String) As String...
1
by: davesmith | last post by:
I have a need for a very simple web server that can authenticate clients using integrated windows authentication. I have been asked to propose a solution that doesn't use IIS. I know that...
2
by: willyd61 | last post by:
Hello Everyone! Newbie here... I can't configure any remote clients to connect to my DB2 server, I am able to run and connect local from the server, but if I try to connect with a user and...
1
nirmalsingh
by: nirmalsingh | last post by:
hi my coding is <?php /* You should never post secure details like IP address, username and password on a public forum Removed for security Banfa Admin */
5
by: John | last post by:
Hi When I try to install a published app using a url like http://www.mydomain.com/publish.htm, it starts the download but then comes up with the eror given at the end below. I am installing the...
5
by: Nash | last post by:
Hi, I am using asynchronous client/server communication. Whenever a client is getting connected to the server the correspoinding socket is added to the list. I want to validate whether the client...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.