From 67cc2eb5d8e13850cfca1aa2bca9488981fd9c4a Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 3 Sep 2015 00:32:00 +0000 Subject: [PATCH] Improved install info, and moved newer info above the old git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337722 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqli/configure.xml | 84 +++++++++++++++------------------- 1 file changed, 38 insertions(+), 46 deletions(-) diff --git a/reference/mysqli/configure.xml b/reference/mysqli/configure.xml index c1fdc26078..15f5eddf38 100644 --- a/reference/mysqli/configure.xml +++ b/reference/mysqli/configure.xml @@ -16,22 +16,27 @@ The common Unix distributions include binary versions of PHP that can be installed. Although these binary versions are typically built with - support for MySQL extensions enabled, the extension libraries + support for the MySQL extensions, the extension libraries themselves may need to be installed using an additional package. Check the package manager than comes with your chosen distribution for availability. - + - Unless your Unix distribution comes with a binary package of PHP with - the mysqli extension available, you will need to - build PHP from source code. 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. + For example, on Ubuntu the php5-mysql package installs + the ext/mysql, ext/mysqli, and pdo_mysql PHP extensions. On CentOS, + the php-mysql package also installs these three + PHP extensions. - The MySQL Native Driver is the recommended option, as it + 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 @@ -59,25 +64,25 @@ - 5.0.x, 5.1.x, 5.2.x - libmysqlclient - &NotAvailable; + 5.4.x and above + mysqlnd + - + mysqlnd is the default 5.3.x libmysqlclient - mysqlnd is now supported + mysqlnd is supported - 5.4.x - mysqlnd - + 5.0.x, 5.1.x, 5.2.x + libmysqlclient + &NotAvailable; - mysqlnd is now the default + mysqlnd is not supported @@ -92,20 +97,6 @@ possible. - - The following example builds the MySQL extension to use the MySQL - Client Library, and the mysqli and PDO MYSQL - extensions to use the MySQL Native Driver: - - - - -
@@ -117,12 +108,27 @@ installer. +
+ + PHP 5.3.0 and newer + + + On Windows, for PHP versions 5.3 and newer, the + mysqli extension is enabled and + uses the MySQL Native Driver by default. This means you don't need to + worry about configuring access + to libmysql.dll. + + +
+
PHP 5.0, 5.1, 5.2 - Once PHP has been installed, some configuration is + On these old unsupported PHP versions (PHP 5.2 reached EOL on '6 Jan 2011'), + additional configuration procedures are required to enable mysqli and specify the client library you want it to use. @@ -175,20 +181,6 @@
-
- - PHP 5.3.0+ - - - On Windows, for PHP versions 5.3 and newer, the - mysqli extension is enabled and - uses the MySQL Native Driver by default. This means you don't need to - worry about configuring access - to libmysql.dll. - - -
-