Installing MySQL Support

To use PHP’s built-in client libraries for MySQL support, use the --with-mysql configure option.

To use the MySQL libraries (instead of the libraries included with PHP), set the --with-mysql= /path/to/mysql/libraries configure option.

Windows users:The Win32 binaries of PHP have MySQL support built in. No external extensions are needed.

Warning:

Users building PHP as an Apache module should avoid using PHP’s built-in MySQL client libraries.

If any other Apache modules use the MySQL client libraries (such as auth-mysql or modperl), there will be a conflict between the MySQL libraries provided with PHP and the MySQL libraries used by the other modules. To avoid the conflict, configure PHP using the --with-mysql= /path/to/mysql/libraries ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.