Page 1 of 1

How does php know where MySQL headers are stored?

PostPosted: 13. October 2009 16:07
by sysop1911
In XAMPP, where is location of the MySQL headers stored? I recently upgraded Apache, PHP and MySQL, but when I go to phpinfo.php, it says my Client API headers are version 5.0.51b, which was the old version of MySQL I had installed, but the Cilent API library says 5.0.87, which is the new version of MySQL. I know it gets the library from libmysql.dll, which I have in Windows\system32, but I need to know how to set php to include the mysql\include path so it knows where the correct header files are. I looked in the php.ini file, but didn't see a setting for the location of the mysql headers files. Do I need to copy the mysql .h files to xampp\apache\include? Thanks.

Re: How does php know where MySQL headers are stored?

PostPosted: 13. October 2009 16:36
by Wiedmann
it says my Client API headers are version 5.0.51b

That's a compile time value.

Re: How does php know where MySQL headers are stored?

PostPosted: 13. October 2009 17:58
by sysop1911
Any idea how to get it to be the correct version of MySQL? Apache, PHP are the latest versions and MySQL is from the MySQL install file for version 5.0.86. I wonder why it would still show the old version.

Re: How does php know where MySQL headers are stored?

PostPosted: 13. October 2009 20:33
by Wiedmann
Any idea how to get it to be the correct version of MySQL?

Compile the extension your own.

I wonder why it would still show the old version.

Because your extension is compiled with the headers from version 5.0.51b.