En Fr
Web/database development and more...
« Practical UML - A Hands-On Introduction for DevelopersXP, Hibernate and... nero! :( »

Using PHP 4.3.8 with MySQL 4.1

06.10.04

English (EU) Using PHP 4.3.8 with MySQL 4.1

Permalink 14:52:33, by Francois Planque Email , Categories: b2evolution, PHP, mySQL

Running an app under PHP 4.3.8 and trying to connect to a MySQL 4.1 database can be pretty frustrating. By default it gives you a message like this:

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

The problem is that by default PHP's MySQL module is compiled with an older MySQL client library. MySQL has a manual page about this.

I use the OLD_PASSWORD method. I connect to MySQL under root with MySQL Query Browser and I issue the following command:

set password for 'demouser' = old_password('demopass');

in MySQL 5:

set password for demouser@localhost = old_password('demopass');

3 comments

Comment from: Rob Rogers [Visitor]
Rob RogersDue to a time crunch I almost revererted to the 4.0*. Instead, now I get to use 4.1, which matches my production environment
2004-11-05 @ 02:11
Comment from: Francois Planque [Member] Email
Note: When using a newer client library (like the mysql command line tool provided with the 4.1 server), you can connect to older servers and use either the old or the new authentication protocol.
2004-12-02 @ 17:46
Comment from: John Berry [Visitor]
John BerryThank you! This was exactly the advice I needed.
2005-02-09 @ 22:29