Hi bmcgill…
i had installed php, mysql and apache some months ago in my computer following the instructions from kevin’s book. and there was no problem. everything was working fine.
i bought a new computer last week and installed the latest versions in the new computer. after installing and running it. i got the error which u got: Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50145
i reinstalled everything and again i was receiving the same error. i had the same conf for mysql, php and apache as u’ve mentioned.
i uninstalled apache and php. and installed the earlier versions which i was using: apache- 2.2.11 and php-5.3.0. this time everything was working fine and there was no error
well it just worked like that for me. that’s why i’m telling. i don’t know why it worked now.
i was searching about this issue in net, and in a forum in mysql’s website i found that some other person had this problem with a much earlier versions. he reinstalled php and the problem was solved.
I’m also stuck on Chapter 4 of ‘Build Your Own Database Driven Web Site using PHP and MySQL’ 4th Edition.
My error:
[I]Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50145 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php on line 2
Warning: mysqli_connect() [function.mysqli-connect]: (/1207959552): in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\index.php on line 2
I would like to give my 2piece cents to this. I too was struggles with these problems until I followed to where pmw57 (thanks by the way) direction assisted me.
Okay for this problem: " Warning: mysqli_connect() [function.mysqli-connect]: Headers and client library minor version mismatch. Headers:50051 Library:50144 in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\connect\index.php"
[I][COLOR=“Red”]Confirmed errors in the October 2004 Third Edition:
Some of the errors listed here may also apply to the previous edition (see below), although page numbers will almost certainly differ.
p.7 step 2
In PHP 5 or later, you must copy the libmysql.dll file from the PHP installation directory to your system32 directory along with php5ts.dll.
[/COLOR][/I]