mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
70 lines
2.1 KiB
XML
70 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: 48ce43fe79fa0c9f31f187ea8ec995b4cb13037e Maintainer: leonardolara Status: ready -->
|
|
|
|
<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>
|
|
Para ter esta funções disponíveis, deve-se compilar o PHP com
|
|
suporte para a extensão mysqli.
|
|
</para>
|
|
|
|
<para>
|
|
<emphasis role="bold">MySQL 8</emphasis>
|
|
</para>
|
|
|
|
<para>
|
|
Ao executar o PHP em versão anterior a 7.1.16, ou PHP 7.2 anterior a 7.2.4, defina
|
|
o plugin padrão de senha do Servidor MySQL 8 para <emphasis>mysql_native_password</emphasis>
|
|
ou surgirão erros parecidos com
|
|
<emphasis>The server requested authentication method unknown to the client [caching_sha2_password]</emphasis>
|
|
mesmo quando <emphasis>caching_sha2_password</emphasis> não for usado.
|
|
</para>
|
|
<para>
|
|
Isto acontece porque o padrão do MySQL 8 é caching_sha2_password, um plugin que não é
|
|
reconhecido pelas versões anteriores do PHP (mysqlnd). Para resolver, altere
|
|
para a configuração <literal>default_authentication_plugin=mysql_native_password</literal>
|
|
no arquivo <filename>my.cnf</filename>. O plugin <emphasis>caching_sha2_password</emphasis>
|
|
é totalmente suportado a partir do PHP 7.4.4. Para versões anteriores do PHP, a extensão
|
|
<link linkend="book.mysql-xdevapi">mysql_xdevapi</link> suporta
|
|
o plugin.
|
|
</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
|
|
-->
|
|
|