File: install.xml

package info (click to toggle)
php-doc 20241205~git.dfcbb86%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 70,956 kB
  • sloc: xml: 968,269; php: 23,883; javascript: 671; sh: 177; makefile: 37
file content (119 lines) | stat: -rw-r--r-- 3,314 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<chapter xml:id="mysqlnd.install" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">

  <title>Installation</title>

  <para>
    <emphasis role="bold">Installation on Unix</emphasis>
  </para>

  <para>
    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.
  </para>

  <para>
    For example, to build the MySQL extension, <literal>mysqli</literal>
    and PDO MYSQL using the MySQL Native Driver, the following command
    would be given:
  </para>

<programlisting role="shell">
<![CDATA[
 ./configure --with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
[other options]
]]>
</programlisting>

  <para>
    <emphasis role="bold">Installation on Windows</emphasis>
  </para>

  <para>
    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.
  </para>

  <para>
    <emphasis role="bold">SHA-256 Authentication Plugin support</emphasis>
  </para>

  <para>
    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:
  </para>

<programlisting role="shell">
<![CDATA[
./configure --with-mysql=mysqlnd \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-openssl
[other options]
]]>
</programlisting>

 <para>
  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.
 </para>

 <simplesect role="changelog">
  &reftitle.changelog;
  <para>
   <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>
  </para>
 </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
-->