mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
118 lines
3.2 KiB
XML
118 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="mysqlnd.install">
|
|
|
|
<title>Installation</title>
|
|
|
|
<simpara>
|
|
<emphasis role="bold">Installation on Unix</emphasis>
|
|
</simpara>
|
|
|
|
<simpara>
|
|
In order to use the MySQL Native Driver, PHP needs
|
|
to be built specifying that the MySQL database extensions are
|
|
compiled with MySQL Native Driver support. This is done through
|
|
configuration options prior to building the PHP source code.
|
|
</simpara>
|
|
|
|
<simpara>
|
|
For example, to build the MySQL extension, <literal>mysqli</literal>
|
|
and PDO MYSQL using the MySQL Native Driver, the following command
|
|
would be given:
|
|
</simpara>
|
|
|
|
<programlisting role="shell">
|
|
<![CDATA[
|
|
./configure --with-mysql=mysqlnd \
|
|
--with-mysqli=mysqlnd \
|
|
--with-pdo-mysql=mysqlnd \
|
|
[other options]
|
|
]]>
|
|
</programlisting>
|
|
|
|
<simpara>
|
|
<emphasis role="bold">Installation on Windows</emphasis>
|
|
</simpara>
|
|
|
|
<simpara>
|
|
In the official PHP Windows distributions, MySQL Native
|
|
Driver is enabled by default, so no additional configuration is
|
|
required to use it. All MySQL database extensions will use MySQL
|
|
Native Driver in this case.
|
|
</simpara>
|
|
|
|
<simpara>
|
|
<emphasis role="bold">SHA-256 Authentication Plugin support</emphasis>
|
|
</simpara>
|
|
|
|
<simpara>
|
|
The MySQL Native Driver requires the OpenSSL functionality of PHP to be loaded
|
|
and enabled to connect to MySQL through accounts that use the MySQL SHA-256
|
|
Authentication Plugin. For example, PHP could be configured using:
|
|
</simpara>
|
|
|
|
<programlisting role="shell">
|
|
<![CDATA[
|
|
./configure --with-mysql=mysqlnd \
|
|
--with-mysqli=mysqlnd \
|
|
--with-pdo-mysql=mysqlnd \
|
|
--with-openssl
|
|
[other options]
|
|
]]>
|
|
</programlisting>
|
|
|
|
<simpara>
|
|
In Autotools, the extended SSL support in <literal>mysqlnd</literal> is
|
|
enabled implicitly when building together with the <literal>openssl</literal>
|
|
extension using the <option role="configure">--with-openssl</option> configure
|
|
option. When building without the <literal>openssl</literal> extension, the
|
|
<option role="configure">--with-mysqlnd-ssl</option> configure option can be
|
|
used to enable extended SSL support explicitly.
|
|
</simpara>
|
|
|
|
<simplesect role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>8.4.0</entry>
|
|
<entry>
|
|
The <option role="configure">--with-mysqlnd-ssl</option> Autotools
|
|
configure option was added to enable the extended SSL support explicitly
|
|
when building without the <literal>openssl</literal> extension.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</simplesect>
|
|
|
|
</chapter>
|
|
<!-- 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:"~/.phpdoc/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
|
|
-->
|