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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access