The Installation on LinuxThe common Unix distributions include binary versions of PHP that can be installed. Although these binary versions are typically built with support for the MySQL extensions, the extension libraries themselves may need to be installed using an additional package. Check the package manager that comes with your chosen distribution for availability. For example, on Ubuntu the Alternatively, you can compile this extension yourself. Building PHP from source allows you to specify the MySQL extensions you want to use, as well as your choice of client library for each extension. The MySQL Native Driver is the recommended client library option, as it results in improved performance and gives access to features not available when using the MySQL Client Library. Refer to What is PHP's MySQL Native Driver? for a brief overview of the advantages of MySQL Native Driver. The
Note that it is possible to freely mix MySQL extensions and client libraries. For example, it is possible to enable the MySQL extension to use the MySQL Client Library (libmysqlclient), while configuring the Installation on Windows SystemsOn Windows, PHP is most commonly installed using the binary installer. PHP 5.3.0 and newer On Windows, for PHP versions 5.3 and newer, the PHP 5.0, 5.1, 5.2 On these old unsupported PHP versions (PHP 5.2 reached EOL on '6 Jan 2011'), additional
configuration procedures are required to enable The Also, if you want
to use the MySQL Client Library with As with enabling any PHP extension (such as php_mysqli.dll), the PHP directive
extension_dir should be set to the directory where the PHP extensions are located. See also the Manual Windows Installation Instructions. An example
kendji ¶ 1 month ago
yW0K5o ¶ 4 months ago
bruce ¶ 4 months ago
David dot Kit dot Friedman at gmail dot com ¶ 13 years ago
bansi ¶ 3 years ago
|