mirror of
https://github.com/php/doc-ja.git
synced 2026-04-26 17:38:12 +02:00
77 lines
2.5 KiB
XML
77 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: takagi Status: ready -->
|
|
<!-- CREDITS: hirokawa,mumumu -->
|
|
|
|
<chapter xml:id="mysqli.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
&reftitle.setup;
|
|
|
|
<!-- {{{ Requirements -->
|
|
<section xml:id="mysqli.requirements">
|
|
&reftitle.required;
|
|
<para>
|
|
これらの関数を有効にするには、mysqli 拡張サポートを
|
|
有効にして PHP をコンパイルする必要があります。
|
|
</para>
|
|
|
|
<para>
|
|
<emphasis role="bold">MySQL 8</emphasis>
|
|
</para>
|
|
|
|
<para>
|
|
PHP 7.1.16 より前のバージョン、もしくは PHP 7.2.4 より前の 7.2系の PHP では、
|
|
MySQL 8 サーバーのデフォルトパスワードプラグインを
|
|
<emphasis>mysql_native_password</emphasis> に設定するようにしてください。
|
|
さもないと、
|
|
<emphasis>The server requested authentication method unknown to the client [caching_sha2_password]</emphasis>
|
|
のようなエラーを見ることになります。たとえあなたが
|
|
<emphasis>caching_sha2_password</emphasis> を使っていなくても、です。
|
|
</para>
|
|
<para>
|
|
これは MySQL 8 のデフォルトが 古い PHP (mysqlnd)
|
|
のリリースが認識していないプラグイン caching_sha2_password だからです。
|
|
かわりに、<filename>my.cnf</filename> の設定を
|
|
<literal>default_authentication_plugin=mysql_native_password</literal>
|
|
と変更してください。
|
|
<emphasis>caching_sha2_password</emphasis> プラグインは、
|
|
PHP 7.4.4 以降で完全にサポートされました。
|
|
これより前のバージョンでは、
|
|
<link linkend="book.mysql-xdevapi">mysql_xdevapi</link>
|
|
拡張モジュールでサポートされています。
|
|
</para>
|
|
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Installation -->
|
|
&reference.mysqli.configure;
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ Configuration -->
|
|
&reference.mysqli.ini;
|
|
<!-- }}} -->
|
|
|
|
</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
|
|
-->
|
|
|