<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/mysql.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'mysql.installation.php',
    1 => 'Встановлення',
    2 => 'Встановлення',
  ),
  'up' => 
  array (
    0 => 'mysql.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'prev' => 
  array (
    0 => 'mysql.requirements.php',
    1 => 'Вимоги',
  ),
  'next' => 
  array (
    0 => 'mysql.configuration.php',
    1 => 'Налаштування під час виконання',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql/configure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql.installation" class="section">
 <h2 class="title">Встановлення</h2>

 <div class="warning"><strong class="warning">Увага</strong>
  <p class="para">Це розширення застаріле, починаючи
з PHP 5.5.0, та вилучене з PHP 7.0.0. Натомість використовуються розширення
<a href="book.mysqli.php" class="link">MySQLi</a> або
<a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a>. Докладніше описано у керівництві
<a href="mysqlinfo.api.choosing.php" class="link">MySQL: вибір API</a>.
Цю функцію можна замінити на:</p>
 </div>

 <p class="para" id="mysql.configure">
  For compiling, simply use the 
  <strong class="option configure">--with-mysql[=DIR]</strong>
  configuration option where the optional <code class="literal">[DIR]</code> points to 
  the MySQL installation directory.
 </p>
 <p class="para"> 
  Although this MySQL extension is compatible with MySQL 4.1.0 and greater, 
  it doesn&#039;t support the extra functionality that these versions provide. 
  For that, use the <a href="book.mysqli.php" class="link">MySQLi</a> extension.
 </p>
 <p class="para">
  If you would like to install the mysql extension along with the mysqli extension
  you have to use the same client library to avoid any conflicts.
 </p>

 <div class="section" id="mysql.installation.linux">
  <h2 class="title">Installation on Linux Systems</h2>
  <p class="para">
   Note: <code class="literal">[DIR]</code> is the path to the MySQL client library 
   files (<em>headers and libraries</em>), which can be downloaded from 
   <a href="http://www.mysql.com/" class="link external">&raquo;&nbsp;MySQL</a>.
  </p>
  <table id="mysql.installation.compile.support" class="doctable table">
   <caption><strong>ext/mysql compile time support matrix</strong></caption>
   
    <thead>
     <tr>
      <th>PHP Версія</th>
      <th>Початково</th>
      <th>Параметри конфігурації: <a href="mysqlnd.overview.php" class="link">mysqlnd</a></th>
      <th>Параметри конфігурації: <code class="literal">libmysqlclient</code></th>
      <th>Журнал змін</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>4.x.x</td>
      <td>libmysqlclient</td>
      <td>Недоступно</td>
      <td><strong class="option configure">--without-mysql</strong> to disable</td>
      <td>MySQL enabled by default, MySQL client libraries are bundled</td>
     </tr>

     <tr>
      <td>5.0.x, 5.1.x, 5.2.x</td>
      <td>libmysqlclient</td>
      <td>Недоступно</td>
      <td><strong class="option configure">--with-mysql=[DIR]</strong></td>
      <td>
       MySQL is no longer enabled by default, and the MySQL client libraries
       are no longer bundled
      </td>
     </tr>

     <tr>
      <td>5.3.x</td>
      <td>libmysqlclient</td>
      <td><strong class="option configure">--with-mysql=mysqlnd</strong></td>
      <td><strong class="option configure">--with-mysql=[DIR]</strong></td>
      <td>mysqlnd is now available</td>
     </tr>

     <tr>
      <td>5.4.x</td>
      <td>mysqlnd</td>
      <td><strong class="option configure">--with-mysql</strong></td>
      <td><strong class="option configure">--with-mysql=[DIR]</strong></td>
      <td>mysqlnd is now the default</td>
     </tr>

    </tbody>
   
  </table>

 </div>

 <div class="section" id="mysql.installation.windows">
  <h2 class="title">Installation on Windows Systems</h2>
  <div class="section" id="mysql.installation.windows.php52">
   <h2 class="title">PHP 5.0.x, 5.1.x, 5.2.x</h2>
   <p class="para">
    MySQL is no longer enabled by default, so the 
    <var class="filename">php_mysql.dll</var> DLL must be enabled inside of 
    <var class="filename">php.ini</var>. Also, PHP needs access to the MySQL client library. A file
    named <var class="filename">libmysql.dll</var> is included in the Windows PHP 
    distribution and in order for PHP to talk to MySQL this file needs to be 
    available to the Windows systems <var class="envar">PATH</var>. See the FAQ
    titled &quot;<a href="faq.installation.php#faq.installation.addtopath" class="link">How do I add my PHP 
    directory to the <var class="envar">PATH</var> on Windows</a>&quot; for information on how to do
    this. Although copying <var class="filename">libmysql.dll</var> to the Windows
    system directory also works (because the system directory is by default in 
    the system&#039;s <var class="envar">PATH</var>), it&#039;s not recommended.
   </p>
   <p class="para">
    As with enabling any PHP extension (such as 
    <var class="filename">php_mysql.dll</var>), the PHP directive 
    <a href="ini.core.php#ini.extension-dir" class="link">extension_dir</a> should be set to 
    the directory where the PHP extensions are located. See also the 
    <a href="install.windows.manual.php" class="link">Manual Windows Installation
    Instructions</a>. An example extension_dir value for PHP 5 is
    <code class="literal">c:\php\ext</code>
   </p>
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <p class="para">
     If when starting the web server an error similar to the following occurs:
     <code class="literal">&quot;Unable to load dynamic library &#039;./php_mysql.dll&#039;&quot;</code>, 
     this is because <var class="filename">php_mysql.dll</var> and/or 
     <var class="filename">libmysql.dll</var> cannot be found by the system.
    </p>
   </p></blockquote>
  </div>
  <div class="section" id="mysql.installation.windows.php53">
   <h2 class="title">PHP 5.3.0+</h2>
   <p class="para">
    The <a href="mysqlnd.overview.php" class="link">MySQL Native Driver</a> is enabled by
    default. Include <var class="filename">php_mysql.dll</var>, but <var class="filename">libmysql.dll</var>
    is no longer required or used.
   </p>
  </div>
 </div>

 <div class="section" id="mysql.installation.notes">
  <h2 class="title">MySQL Installation Notes</h2>
   <div class="warning"><strong class="warning">Увага</strong>
    <p class="para">
     Crashes and startup problems of PHP may be encountered
     when loading this extension in conjunction with the recode extension.
     See the <a href="ref.recode.php" class="link">recode</a> extension for more
     information.
    </p>
   </div>
   <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
    <p class="para">
     If you need charsets other than <em>latin</em> (default), you
     have to install external (not bundled) libmysqlclient with compiled charset
     support. 
    </p>
   </p></blockquote>
 </div>
</div><?php manual_footer($setup); ?>