Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP Databases
PHP Databases Using PHP in conjunction with databases. PHP questions not specific to databases should be directed to one of the other PHP forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 5th, 2004, 05:53 PM
Registered User
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jehchoi1
Default Need Help Connecting to mySQL Database!

Can someone tell me why I am getting this message:

"Client does not support authentication protocol requested by server; consider upgrading MySQL client"

System Setup:
Running Apache 2 with PHP 4.3.9 on Windows XP
and mySQL 4.1.7

PHP Code Used:
mysql_connect("localhost", "userid", "password") or

Any help will be appreciated
Old November 6th, 2004, 08:02 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul

u may try Win2000 Pro/Server or Win2003 :)
Old November 6th, 2004, 09:47 AM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

Although I haven't heard of the error you're talking about, using a Microsoft server will not overcome it.

Check out the docs and mailing lists at http://www.mysql.com. I'm sure someone there has a clue of what's happening.


[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
Old February 2nd, 2005, 04:13 PM
Registered User
Join Date: Aug 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

try to set register_globals to On and try it.

Old February 26th, 2005, 11:08 AM
Authorized User
Join Date: Jan 2005
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to p2ptolu Send a message via Yahoo to p2ptolu

mysql on my system works alone but can not connect to php, i use php4 and mysql 4.1 on apache 1.33 all om win xp pro,please help me too.

Old April 16th, 2005, 03:34 PM
Registered User
Join Date: Apr 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts

Thanks, I did set up my password by using :
"set password for root@loacalhost=password('your_password');
log out "\q", and then log back with:
mysql -u root -p,
prompts for password! 'yourpassword'
and then I get the wellcome monitor screen.
then I make sure I place the same password in my PHP script, at hte
mysql_connect () function.
and I now get : Can't create database 'wiley'. Database exists.
My hole next week will be dvoted to this message NOW..
Old April 21st, 2005, 09:28 AM
Friend of Wrox
Join Date: Dec 2004
Posts: 154
Thanks: 0
Thanked 0 Times in 0 Posts

Ho yes, I tried to do that I remember; Then I decided that a better use of my time was to use an internet host.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help connecting to mysql database catalog ajrobson Servlets 0 December 28th, 2006 04:24 PM
Connecting to MySQL Database from VB2005 Tank Pro VB Databases 0 January 23rd, 2006 04:46 PM
database connecting with java &mysql rakeshkumar MySQL 1 February 4th, 2005 11:59 AM
Connecting to mySQL WIx ASP.NET 1.0 and 1.1 Basics 3 October 17th, 2004 04:13 PM
Connecting Access2000 to MySQL Database Rood67 Access 4 May 20th, 2004 12:49 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.