<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mysqli.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'mysqli.requirements.php',
    1 => 'Requisiti',
    2 => 'Requisiti',
  ),
  'up' => 
  array (
    0 => 'mysqli.setup.php',
    1 => 'Installazione/Configurazione',
  ),
  'prev' => 
  array (
    0 => 'mysqli.setup.php',
    1 => 'Installazione/Configurazione',
  ),
  'next' => 
  array (
    0 => 'mysqli.installation.php',
    1 => 'Installazione',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysqli/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqli.requirements" class="section">
  <h2 class="title">Requisiti</h2>
  <p class="para">
   In order to have these functions available, you must compile PHP with
   support for the mysqli extension.
  </p>

  <p class="para">
    <strong>MySQL 8</strong>
  </p>

  <p class="para">
   When running a PHP version before 7.1.16, or PHP 7.2 before 7.2.4, set
   MySQL 8 Server&#039;s default password plugin to <em>mysql_native_password</em>
   or else you will see errors similar to
   <em>The server requested authentication method unknown to the client [caching_sha2_password]</em>
   even when <em>caching_sha2_password</em> is not used.
  </p>
  <p class="para">
   This is because MySQL 8 defaults to caching_sha2_password, a plugin that is
   not recognized by the older PHP (mysqlnd) releases. Instead, change it by
   setting <code class="literal">default_authentication_plugin=mysql_native_password</code>
   in <var class="filename">my.cnf</var>. The <em>caching_sha2_password</em>
   plugin is fully supported as of PHP 7.4.4. For older releases, the
   <a href="book.mysql-xdevapi.php" class="link">mysql_xdevapi</a> extension does
   support it.
  </p>

 </div><?php manual_footer($setup); ?>