Forum Moderators: coopster

Message Too Old, No Replies

phpinfo and SELECT VERSION reporting different versions

         

Nutter

2:20 am on Jul 9, 2007 (gmt 0)

10+ Year Member



One of my clients is having database issues, and one of the things I've come across trying to debug is that phpinfo is showing the MySQL client version as 5.0.18 while when I run SELECT VERSION through a mysql_query it shows 4.1.22-max. Is this normal, is the server possibly misconfigured, or could it be either?

I don't think this is related to the problem they're having. I guess I'm just more curious how phpinfo gets the MySQL version since it's different than how I'm doing it with code.

phparion

4:58 am on Jul 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



check your server that how many installations of php /mysql you have there? you are probably working with two different installations of php on the same server, you are viewing phpinfo page from a different installation and using command line of the different installation... are you getting my point?

check the output of this command from shell,

rpm -qf php