faqts : Computers : Programming : Languages : PHP : Installation and Setup : Databases

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

21 of 52 people (40%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

What should I do to make my php to work with MySQL ?

May 18th, 2000 06:29
Andrei Zmievski, Henrik Hansen, Antony Lee, PHP manual


Compile PHP with:
--with-mysql=DIR
Which enables MySQL support. The parameter to this option is the MySQL 
install directory and defaults to /usr/local. This is the default 
installation directory of the MySQL distribution.
Bofore doing this you should have a working mysql server installed on 
your system.
PHP 4 comes bundled with MySQL client library and it is enabled by
default, thus obviating the need for --with-mysql, unless you have a
newer version installed somewhere else.