Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP 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 August 9th, 2005, 02:42 PM
ujj ujj is offline
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default MySql db_connect

Hello, I´m learning how to connect to mysql, with "beginning php5" book.
Chapter 9. I have a problem with de first "try it out", page 370. When run this scrip, I have got this message: Warning: mysql_connect() [function.mysql-connect]: Client does not support authentication protocol requested by server; consider upgrading MySQL client in d:\Inetpub\wwwroot\pruebas\db_connect.php on line 10

I don´t know what it is. Could anyone help me, please?

I have installed Mysql version 4.1.7
At page 367 are 4 items, for windows users, mysql libraries and php.ini modification. I did it ok, checked all, and everything is all right.

Thanks.
Juan José Urli
ujj@ciudad.com.ar
Buenos Aires, Argentina.

 
Old August 14th, 2005, 05:41 AM
Authorized User
 
Join Date: Feb 2005
Location: tehran, , Iran.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

please copy php.ini to windows folder and then
copy all php DLL into system32 folder
 
Old August 15th, 2005, 08:25 AM
Registered User
 
Join Date: Aug 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have similar problem with MySQL Server 4.1, Apache 2.0.54 and PHP 4.4.0.0. A part of the problem is solved by inserting host,user and password in php.ini file(C:\Windows\). I can afford this because I'm only local user. That helped me with "Warning: mysql_connect() [function.mysql-connect]: Client does not support ...". I can't still conect to MySQL (I'm getting die message from PHP code) although I use correct values for -h, -u, -p.
P.S.: Copying all dlls to system32 didn't solve my problem.

 
Old August 16th, 2005, 07:49 AM
Authorized User
 
Join Date: Feb 2005
Location: tehran, , Iran.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
is it posible to put your code here




Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL 5.0 dparsons MySQL 0 May 11th, 2006 08:32 AM
mysql help benzspida MySQL 1 April 6th, 2006 04:31 AM
mysql g.tamilselvan MySQL 1 February 22nd, 2006 10:45 AM
MySQL joanncae BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 March 3rd, 2004 08:30 PM
mySQL CYcolone Classic ASP Databases 1 August 27th, 2003 02:45 AM





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