Re: Re: difference between shared and /usr/bin/mysql
| From: | Marco Tabini | Date: | Wed, 15 Jan 2003 14:31:48 +0000 |
| Subject: | Re: Re: difference between shared and /usr/bin/mysql | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131709@lists.php.net to get a copy of this message | ||
On Wed, 2003-01-15 at 09:36, Leon Mergen wrote:
> Somebody correct me if I'm wrong, but from what I know is that when using
> shared it is compiled as a shared object and only loaded when needed. This
> decreases ram usage (which is good) , but increases load (which is bad) .
AFAIK, you should use a shared module when you're also using other
Apache modules that interface to MySQL. When you ./configure the PHP
interpreter, you get this info:
| You chose to compile PHP with the built-in MySQL support. If you |
| are compiling a server module, and intend to use other server |
| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
| instead build it with your local MySQL support files, by adding |
| --with-mysql=/path/to/mysql to your configure line. |
Cheers,
Marco
--
----------------
php|architect - The Monthly Magazine for PHP Professionals
Come check us out on the web at http://www.phparch.com!