2002-11-25 23:49:22 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2003-07-14 09:07:23 +00:00
|
|
|
<!-- $Revision: 1.7 $ -->
|
2002-11-25 23:49:22 +00:00
|
|
|
<section id="mysql.installation">
|
|
|
|
&reftitle.install;
|
2003-05-01 02:58:00 +00:00
|
|
|
<para id="mysql.configure">
|
2002-11-25 23:49:22 +00:00
|
|
|
By using the <option role="configure">--with-mysql[=DIR]</option>
|
|
|
|
configuration option you enable <literal>PHP</literal> to access MySQL
|
2003-06-29 17:35:49 +00:00
|
|
|
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
|
2003-07-14 09:07:23 +00:00
|
|
|
MySQL install DIR, <literal>PHP</literal> will use the bundled MySQL client
|
2003-06-29 17:35:49 +00:00
|
|
|
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
|
2003-07-14 09:07:23 +00:00
|
|
|
path to MySQL's install directory, like so:
|
2003-06-29 17:35:49 +00:00
|
|
|
<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>
|
2003-06-29 17:40:29 +00:00
|
|
|
In PHP 5, MySQL is no longer enabled by default, nor is the MySQL library
|
2003-07-02 06:55:59 +00:00
|
|
|
bundled with PHP. Read this <link linkend="faq.databases.mysql.php5">
|
|
|
|
FAQ</link> for details on why.
|
2002-11-25 23:49:22 +00:00
|
|
|
</para>
|
2003-06-08 15:07:08 +00:00
|
|
|
<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>
|
2002-11-25 23:49:22 +00:00
|
|
|
<warning>
|
|
|
|
<para>
|
|
|
|
Crashes and startup problems of <literal>PHP</literal> may be encountered
|
|
|
|
when loading this extension in conjunction with the recode extension.
|
|
|
|
See the <link linkend="ref.recode">recode</link> extension for more
|
|
|
|
information.
|
|
|
|
</para>
|
|
|
|
</warning>
|
2003-06-08 15:07:08 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
If you need charsets other than <emphasis>latin</emphasis> (default), you
|
|
|
|
have to install external (not bundled) libmysql with compiled charset
|
|
|
|
support.
|
|
|
|
</para>
|
|
|
|
</note>
|
2002-11-25 23:49:22 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|