I've run both programs. [1] outputs Client library version 5.1.51, but [2] gives no output. However I have checked MySql status via the command prompt which tells me mysql Ver 14.14 Distrib 5.1.51 for Win32(ia32).

I originally installed PHP 5.3 but I couldn't get it to communicate with mysqli (and I tried everything!) so I unstalled it and replaced it with version 5.2.14. PHP info tells me this that the Client API library version is 5.1.51 and the header version is 5.0.51a.

Does this help identify a solution?

Thanks and best wishes

----- Original Message ----- From: "Luigi Pressello" <rad...@gmail.com>
To: "Tommy Pham" <tommy...@gmail.com>
Cc: "'sueandant'" <hollandsath...@tiscali.co.uk>; "'PHP'" <php-general@lists.php.net>
Sent: Friday, October 15, 2010 10:46 PM
Subject: Re: [PHP] Error message not understood

Probably a PHP compilation problem.
The message seems refer to the headers (libmysql.h) used in the ./configure phase of the building process.

It seems like your PHP version was compiled using a MySQL 5.0.11 version header, while your connecting to a server running MySQL 5.1.51, Have you upgraded your MySQL recently? are you using the MySQL server on the same machine that runs Apache/IIS/etc.. and PHP?

Sorry for the "Italianese" english :)


Il giorno 15/ott/2010, alle ore 23.19, Tommy Pham ha scritto:

-----Original Message-----
From: Tommy Pham [mailto:tommy...@gmail.com]
Sent: Friday, October 15, 2010 2:16 PM
To: 'sueandant'; 'PHP'
Subject: RE: [PHP] Error message not understood

-----Original Message-----
From: sueandant [mailto:hollandsath...@tiscali.co.uk]
Sent: Friday, October 15, 2010 2:02 PM
Subject: [PHP] Error message not understood

Can anyone help me with this error message and explain how to correct
the mismatch?

PHP Warning:  mysqli_connect() [<a href='function.mysqli-
connect'>function.mysqli-connect</a>]: Headers and client library
minor version mismatch. Headers:50051 Library:50151


It would help if you provide the platform and platform version:
Windows, Linux, Mac, FreeBSD, or other variants.

And also the PHP version you're using.  Did you compile PHP yourself or
a distribution?


Forgot to mention this earlier... too hasty on the send button ... lol.

Since it's only a warning and you are able to connect, run [1] & [2] to see
what do you get.

[1] http://us2.php.net/manual/en/mysqli.get-client-info.php
[2] http://us2.php.net/manual/en/mysqli.info.php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to