On 09/23/2004 9:37 AM, Stembridge, Michael <[EMAIL PROTECTED]> wrote:

> I installed PHP 4.3.1 via source and used the following option when
> configuring:
> 
> ./configure --with-mysql
> 
> The database has worked great for a couple of years, however I noticed a
> problem today.  
> 
> Phpinfo() returns MySQL Version 3.23 from a php script.
> 
> Client API version          3.23.49
> MYSQL_MODULE_TYPE          builtin
> MYSQL_SOCKET              /var/lib/mysql/mysql.sock
> MYSQL_INCLUDE              no value
> MYSQL_LIBS              no value
> 
> However, issuing 'mysql -V' at the command line returns version 4.0.1.
> 
> 
> So I assume the version of MySQL bundled with PHP 4.3.1 is in fact 3.23.49
> and this is overriding my standalone installation.

It's not overriding anything, it's doing what you asked: in your configure
you told PHP to use its built-in (MYSQL_MODULE_TYPE) MySQL support.

> Without recompiling, is there a way to upgrade the bundled client?

No - I believe you need to recompile PHP (this path assumes an RPM
installation of MySQL):

./configure --with-mysql=/usr

You also need to recompile when you upgrade MySQL, for example from 4.0.20
to 4.0.21.

Paul


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to