473,765 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ 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 1985
On Sun, 13 Feb 2005 08:30:05 -0700, Martin <ma**********@c omcast.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**********@c omcast.net> wrote:
On Sun, 13 Feb 2005 08:30:05 -0700, Martin <ma**********@c omcast.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.andyhsoftwa re.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**********@c omcast.net> wrote:
On Sun, 13 Feb 2005 08:30:05 -0700, Martin <ma**********@c omcast.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_passwo rds" 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**********@c omcast.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('s omepassword');

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
2350
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 after upgrading to MySql 4.1. I received the message: "Client does not support authentication protocol requested by server. Consider upgrading MySQL client." After reading here: http://www.mysql.com/doc/en/Old_client.html
1
7643
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 Server läuft auch. Nach dem ich die Datenbanken der Vorgängerversion 4.0.x in das
7
1290
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 resources (GetModuleHandle failed with error -2147023888)." It's is not a problem with the application because the same application is running fine on another web server.
7
2934
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 Dim returnstr As String Dim URL As String = "http://www.dydomain.com/test.asp"
1
2383
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 HttpListener is a good option, but I need support for Win2K. I tried putting together a simple server that uses NegotiateStream, but when I try to access it with IE everything just hangs on the AuthenticateAsServer call. Is what I'm trying to do even...
2
522
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 specify password it fails with the dreaded SQL30082N. I have checked all parameters, there is the servicename registered in /etc/services the dbm cfg is set (pasted below). this is a Workgroup Edition, I have tried everything, also note that I can only...
1
1482
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
1761
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 app on an sbs 2003 (windows 2003 + ISA 2000) server. I suspect ISA 2000 is the problem but don't know where and how to give proxy credentials in the whole publishing and installing process. Any help to fix this will be appreciated. Thanks
5
2804
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 is really a valid one, for that every client will send some command to server for validation. But the thing is if the client is invalid server will not receive the command at all so the socket will be kept open how should i identify that socket...
0
9404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7379
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5277
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.