User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,321 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,260 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2170 | Replies: 3
Reply
Join Date: Jul 2005
Posts: 169
Reputation: aparnesh is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

PHP-MySQL Conn Problem in Win XP

  #1  
Jul 8th, 2005
Hi

When I am trying to connect to mySQL from PHP, I am getting the error "Client does not support authentication protocol requested by server; consider upgrading mySQL client" . I am using PHP 4, mySQL 4.1 and Win XP Pro. The error is occuring both for Apache & IIS. I am using the same configurations (including php.ini & httpd.conf) in a Win 98 machine, where it is working perfectly. The php.net site advised recompling with -mysqli option, but since I am in Windows I can't do that.

How can I make this work ?
Thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2005
Location: Kansas City, Missouri, USA
Posts: 344
Reputation: Troy is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 4
Troy's Avatar
Troy Troy is offline Offline
Posting Whiz

Re: PHP-MySQL Conn Problem in Win XP

  #2  
Jul 8th, 2005
Unfortunately, I don't have the experience or time to troubleshoot your exact problem, but I can offer you my WAMP Tutorial which sets up Apache2, PHP5, and MySQL4.1 on Windows XP Home and Pro. It is here:
http://www.daniweb.com/techtalkforums/thread26579.html
Troy Wolf is the author of SnippetEdit. "Website editing as easy as it gets." IX Web Hosting
Reply With Quote  
Join Date: Jun 2005
Location: Planet Earth
Posts: 26
Reputation: darklordsatan is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
darklordsatan's Avatar
darklordsatan darklordsatan is offline Offline
Light Poster

Re: PHP-MySQL Conn Problem in Win XP

  #3  
Jul 8th, 2005
This simply happens because of the way php is trying to connect to the mysql server... it has to do with the mysql module in php. Whats weird is that with the exact same configuration, you have it working on win98 (provided the mysql server version is THE SAME that in the xp box).
Likely, there are many solutions... Since im a little tired, Im gonna leave you this:
1. Check the mysql manual (docs folder somewhere in your mysql installation path), as it deals with some possible solutions (that have to do with the way new mysql servers deal with passwords).
2. Google for it, maybe do a search with the error message "Client does not support authentication protocol requested by server; consider upgrading mySQL client", and some good answers might arise. IIRC, one of them is to change the mysql.dll or whatever module for another version or something like that.

Cheers
Reply With Quote  
Join Date: Jul 2005
Posts: 169
Reputation: aparnesh is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: PHP-MySQL Conn Problem in Win XP

  #4  
Jul 12th, 2005
Tried your solution, but the old problem persists. Could this be because of php 5 (in ur example) and php4 (that I am installing) ?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 10:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC