From b45292429464e4b048c191e430156ae6c58bbcb8 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 6 Feb 2007 11:30:06 +0000 Subject: [PATCH] Bug#40053 (Missing installation instructions) copy&paste from ref.mysql git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@229138 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqli/configure.xml | 38 +++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/reference/mysqli/configure.xml b/reference/mysqli/configure.xml index 2404bcb0ea..40a4e5551b 100644 --- a/reference/mysqli/configure.xml +++ b/reference/mysqli/configure.xml @@ -1,5 +1,5 @@ - +
&reftitle.install; @@ -9,10 +9,46 @@ the location of the mysql_config program that comes with MySQL versions greater than 4.1. + If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts. + +
+ Installation on Windows Systems + + MySQLi is not enabled by default, so the + php_mysqli.dll DLL must be enabled inside of + &php.ini;. Also, PHP needs access to the MySQL client library. A file + named libmysql.dll is included in the Windows PHP + distribution and in order for PHP to talk to MySQL this file needs to be + available to the Windows systems PATH. See the FAQ + titled "How do I add my PHP + directory to the PATH on Windows" for information on how to do + this. Although copying libmysql.dll to the Windows + system directory also works (because the system directory is by default in + the system's PATH), it's not recommended. + + + As with enabling any PHP extension (such as + php_mysql.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 extension_dir value for PHP 5 is + c:\php\ext + + + + If when starting the web server an error similar to the following occurs: + "Unable to load dynamic library './php_mysqli.dll'", + this is because php_mysqli.dll and/or + libmysql.dll cannot be found by the system. + + +
+