Entropy.ch Discussion Forums Forum Index Entropy.ch Discussion Forums
Discussion forums about Mac OS X software development.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Apparent version mismatch php & MySQL

 
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X
View previous topic :: View next topic  
Author Message
markpearson



Joined: 24 May 2005
Posts: 2
Location: Richmond, IN, USA

PostPosted: Tue Feb 07, 2006 19:09    Post subject: Apparent version mismatch php & MySQL Reply with quote

OK, so I'm running Mac OS X tiger 10.4.4 on a Mac mini and I need to have php running with postgres & mysql support. Getting postgres going has been a piece of cake -- MySQl however has been a nightmare.
I downloaded and configured the Entropy php 4.3.11 with built in MySQL support:

PHP Version 4.3.11
www.entropy.ch Release 1

I'm using the MySQL that is rolled in to OS X server, 4.1.13a.
When I run this code:
Code:

// Connecting, selecting database

$link = mysql_connect('localhost', 'root', 'password')

   or die('Could not connect: ' . mysql_error());

echo 'Connected successfully';

mysql_select_db('test') or die('Could not select database');

?>

I get the following error message:
Code:

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

This has something to do with MySql change of password authentication mechanisms I think. So what do you recommend? Update php to version 5? Update Mysql to 5 as well?

This is driving me bonkers ....
Cheers
Mark
Back to top
View user's profile Send private message
kfaulhaber



Joined: 06 Aug 2003
Posts: 110
Location: ~/Living Room

PostPosted: Tue Feb 07, 2006 19:31    Post subject: Reply with quote

http://dev.mysql.com/doc/refman/4.1/en/old-client.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
markpearson



Joined: 24 May 2005
Posts: 2
Location: Richmond, IN, USA

PostPosted: Tue Feb 07, 2006 20:58    Post subject: Cock up Reply with quote

Thank you squire. I should have known that one.
So I guess I'll update php to version 5 then. What I'm not sure though is whether all the OS apps then need to use 'mysqli' extension.

Mark
_________________
Dr Mark H Pearson
Instructional Technologist
Earlham College
Richmond, IN 47373
Back to top
View user's profile Send private message
kfaulhaber



Joined: 06 Aug 2003
Posts: 110
Location: ~/Living Room

PostPosted: Tue Feb 07, 2006 21:06    Post subject: Re: Cock up Reply with quote

see below (submitted before I was finished)

Last edited by kfaulhaber on Tue Feb 07, 2006 21:20; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
kfaulhaber



Joined: 06 Aug 2003
Posts: 110
Location: ~/Living Room

PostPosted: Tue Feb 07, 2006 21:18    Post subject: Reply with quote

markpearson wrote:
What I'm not sure though is whether all the OS apps then need to use 'mysqli' extension.


mysqli is not a requirement.

If your installation of PHP5 is configured using --with-mysql then any PHP applications won't have issues with the usual mysql functions. If you are using the Entropy package, this is the case.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Entropy.ch Discussion Forums Forum Index -> PHP on Mac OS X All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group