Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1
This is the forum to discuss the Wrox book Professional PHP5 by Ed Lecky-Thompson, Heow Eide-Goodman, Steven D. Nowicki, Alec Cove; ISBN: 9780764572821
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 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 March 11th, 2005, 06:42 AM
Registered User
Join Date: Mar 2005
Location: , , United Kingdom.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Anybody else learning to HATE pear::DB?

Hi -- is anyone else having difficulties with PEAR::DB?
The list of problems I've been having with it are as long as my arm (the long, thin left arm), but now I'm faced with this:

Debug Warning: DB\mysql.php line 234 - mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Client does not support authentication protocol requested by server; consider upgrading MySQL client

I post that in the hope someone will recognise it, but my main hope is that someone will know of a resource that might help explain & resolve all the problems I've been having (wierd extension directory settings I can't change, bizzarre errors from PEAR code, etc.).

If anyone can help, MAN, but will I be singing your praises!


Common sense is what tells you the world is flat.
Old March 12th, 2005, 08:44 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

It looks like a problem with MySQL, not PEAR DB.

You can always ask the authors of the package, or get help from the PEAR commmunity. The best place to go is the PEAR-GENERAL mailing list.



Mail_IMAP: A PHP/C-Client/PEAR solution for webmail
Author: Beginning CSS: Cascading Style Sheets For Web Design
Old March 15th, 2005, 04:58 AM
Registered User
Join Date: Dec 2004
Location: Victoria, B.C., Canada.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to andersen_hc

Seems to me that you've got a problem with having a PHP version, which does not support the authentication protocol/password hashing required by the MySQL server, probably because your MySQL db is on version 4.1.1 or higher...

I suggest you either follow the advice of the following link or downgrade your version of MySQL (er, 4.1 probably works well)... Not really the fault of Pear that MySQL would change a few things around.


"Note for PHP users: The mysql extension does not support the new authentication protocol in MySQL 4.1.1 and higher. This is true regardless of the PHP version being used. If you wish to use the mysql extension with MySQL 4.1 or newer, you will need to follow one of the options discussed above for configuring MySQL to work with old clients. The mysqli extension (stands for "MySQL, Improved"; new in PHP 5) is compatible with the improved password hashing employed in MySQL 4.1 and higher, and no special configuration of MySQL need be done in order to use this newer MySQL client library for PHP. For more information about the mysqli extension, see http://php.net/mysqli."

- Hans-Christian

"Populus Vult Decipi, Ergo Decipiatur..."

Similar Threads
Thread Thread Starter Forum Replies Last Post
PEAR DB Connection failure bxh Beginning PHP 0 October 6th, 2005 10:25 PM
PEAR::Auth and PEAR::Auth_HTTP Ceriwaen Beginning PHP 1 February 18th, 2005 04:36 PM
pear db::connect turing PHP Databases 1 September 15th, 2004 05:22 PM
PEAR::DB Using Problem ruhin Beginning PHP 5 June 4th, 2004 12:50 AM
Using PEAR DB and Classes. TreacherousDog Beginning PHP 1 July 8th, 2003 01:02 PM

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