1
0
mirror of https://github.com/php/doc-pl.git synced 2026-03-24 07:02:07 +01:00
Files
archived-doc-pl/reference/mysqli/setup.xml
2024-08-10 15:24:57 +02:00

70 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: sobak Status: ready -->
<!-- $Revision$ -->
<!-- CREDITS: grzesiek -->
<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>
Aby mieć dostęp do tych funkcji, musisz skompilować PHP z
obsługą rozszerzenia mysqli.
</para>
<para>
<emphasis role="bold">MySQL 8</emphasis>
</para>
<para>
W przypadku korzystania z wersji PHP wcześniejszej niż 7.1.16 lub PHP 7.2 wcześniejszej niż 7.2.4
ustaw MySQL 8 Server domyślne hasło wtyczki na <emphasis>mysql_native_password</emphasis>
w przeciwnym razie pojawią się błędy podobne do
<emphasis>Serwer zażądał metody uwierzytelniania nieznanej klientowi [caching_sha2_password]</emphasis>
nawet jeśli <emphasis>caching_sha2_password</emphasis> nie jest używane.
</para>
<para>
Dzieje się tak, ponieważ MySQL 8 domyślnie używa caching_sha2_password,
wtyczki, która nie jest rozpoznawana przez starsze wersje PHP (mysqlnd). Zamiast tego
należy to zmienić, ustawiając <literal>default_authentication_plugin=mysql_native_password</literal>
w <filename>my.cnf</filename>. Wtyczka <emphasis>caching_sha2_password</emphasis>
jest w pełni obsługiwana od PHP 7.4.4. W starszych wersjach rozszerzenie
<link linkend="book.mysql-xdevapi">mysql_xdevapi</link> obsługuje ją.
</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
-->