Re: Using MySQL with PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,
MySQL support might be already available in your PHP. You can check that using phpinfo ( http://www.php.net/manual/en/function.phpinfo.php ). If you see MySQL section in the output of phpinfo() -  you already have MySQL support, if no - you have to recompile PHP with the following parameters to your configure script:

 --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base directory
  --with-mysql-sock[=DIR]   MySQL: Location of the MySQL unix socket pointer.
                            If unspecified, the default locations are searched

Donatas Vyzas

Blanton, Bob wrote:

Hi,

  If I want to use MySQL with PHP do I need to re-compile PHP or can I just adjust the php.ini file to use MySQL? 

 

Thanks in advance.

Bob



[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux