Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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 January 29th, 2006, 07:46 PM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Client does not support authentication prot

I'm using PHP 4.4.2 and MySQL 5.0.18. This book uses an older version of MySQL, which led to some difficulty connecting to MySQL in the create a movie database "Try It Out" section on page 96.

When using:
$connect = mysql_connect("localhost", "root", "mysqlpass")
I kept getting an error message that said: "Client does not support authentication protocol".

I went to the MySQL site and found that MySQL 5 uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients (whatever that means!). They provide instructions on how you can make a newer MySQL client revert to the old password authentication, thus allowing the connection. This seems to have worked for me and I wanted to post this on the P2P site in case anyone else ran into this problem.

This link brings to you to a page that provides instructions on how to fix this issue:

http://dev.mysql.com/doc/refman/5.0/en/old-client.html

Of course, the best solution would probably be to just upgrade to PHP5, but I bought this book before the newer PHP5 edition came out.








Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting client to client (Socket programming) maricar C# 0 September 25th, 2008 04:34 AM
Error-Object does not support doesn't support this bootsy Classic ASP Basics 1 May 25th, 2008 07:14 PM
Client does not support authentication protocol Evarias PHP Databases 1 May 24th, 2006 11:05 AM
#1251 - Client does not support authentication pro p2ptolu Beginning PHP 0 May 5th, 2005 11:00 AM
#1251 - Client does not support authentication pro p2ptolu MySQL 0 May 5th, 2005 09:00 AM





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