Mention that MySQL is not bundled or enabled by default with PHP 5, and a little rewording.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@133628 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2003-06-29 17:35:49 +00:00
parent 2f2a9f9410
commit 904b3f9ec9

View file

@ -1,27 +1,34 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<section id="mysql.installation">
&reftitle.install;
<para id="mysql.configure">
By using the <option role="configure">--with-mysql[=DIR]</option>
configuration option you enable <literal>PHP</literal> to access MySQL
databases. If you use this option without specifying the path to MySQL,
<literal>PHP</literal> will use the bundled MySQL client libraries.
As of PHP 4, <option role="configure">--with-mysql</option> is enabled
by default so to disable MySQL support you must use
<option role="configure">--without-mysql</option>. Users who run other
applications that use MySQL (for example, running PHP 3 and PHP 4 as
concurrent apache modules, or auth-mysql) should always specify the path
to the MySQL <literal>DIR</literal>:
<option role="configure">--with-mysql=/path/to/mysql</option>.
This will force <literal>PHP</literal> to use the client libraries installed
by MySQL, avoiding any conflicts.
databases.
</para>
<para>
In PHP 4, the option <option role="configure">--with-mysql</option> is
enabled by default. To disable this default behavior, you may use the
<option role="configure">--without-mysql</option> configure option.
Also in PHP 4, if you enable MySQL without specifying the path to the
MySQL source DIR, <literal>PHP</literal> will use the bundled MySQL client
libraries. In Windows, there is no DLL, it's simply built into PHP 4.
Users who run other applications that use MySQL (for example,
auth-mysql) should not use the bundled library, but rather specify the
path to MySQL's source directory, like so:
<option role="configure">--with-mysql=/path/to/mysql</option>.
This will force <literal>PHP</literal> to use the client libraries
installed by MySQL, thus avoiding any conflicts.
</para>
<para>
As of PHP 5.0.0, MySQL is no longer enabled by default, nor is the MySQL
library bundled with PHP.
</para>
<para>
This MySQL extension will not work with MySQL versions greater than
4.1.0. For that, use <link linkend="ref.mysqli">MySQLi</link>.
</para>
&windows.builtin;
<warning>
<para>
Crashes and startup problems of <literal>PHP</literal> may be encountered