<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'mysql.configuration.php',
    1 => 'Runtime Configuration',
    2 => 'Runtime Configuration',
  ),
  'up' => 
  array (
    0 => 'mysql.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'mysql.installation.php',
    1 => 'Installation',
  ),
  'next' => 
  array (
    0 => 'mysql.resources.php',
    1 => 'Resource Types',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysql/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql.configuration" class="section">
 <h2 class="title">Runtime Configuration</h2>
 <p class="simpara">
The behaviour of these functions is affected by settings in <var class="filename">php.ini</var>.
</p>
 <p class="para">
  <table id="mysql.configuration.options" class="doctable table">
   <caption><strong>MySQL Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>Name</th>
      <th>Default</th>
      <th>Changeable</th>
      <th>Changelog</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.allow-local-infile" class="link">mysql.allow_local_infile</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.allow-persistent" class="link">mysql.allow_persistent</a></td>
      <td>&quot;1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.max-persistent" class="link">mysql.max_persistent</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.max-links" class="link">mysql.max_links</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-system">INI_SYSTEM</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.trace-mode" class="link">mysql.trace_mode</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.default-port" class="link">mysql.default_port</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.default-socket" class="link">mysql.default_socket</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.default-host" class="link">mysql.default_host</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.default-user" class="link">mysql.default_user</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.default-password" class="link">mysql.default_password</a></td>
      <td>NULL</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.php#ini.mysql.connect-timeout" class="link">mysql.connect_timeout</a></td>
      <td>&quot;60&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

  For further details and definitions of the
INI_* modes, see the <a href="configuration.changes.modes.php" class="xref">Where a configuration setting may be set</a>.
</p>

<p class="para">Here&#039;s a short explanation of
the configuration directives.</p>

<dl>

 
  <dt id="ini.mysql.allow-local-infile">
   <code class="parameter">mysql.allow_local_infile</code>
   <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
  </dt>
  <dd>
   <span class="simpara">
    Allow accessing, from PHP&#039;s perspective, local files with LOAD DATA
    statements
   </span>
  </dd>
 

 
  <dt id="ini.mysql.allow-persistent">
   <code class="parameter">mysql.allow_persistent</code>
   <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
  </dt>
  <dd>
   <span class="simpara">
    Whether to allow
    <a href="features.persistent-connections.php" class="link">persistent connections</a>
    to MySQL.
   </span>
  </dd>
 

 
  <dt id="ini.mysql.max-persistent">
   <code class="parameter">mysql.max_persistent</code>
   <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The maximum number of persistent MySQL connections per
    process.
   </span>
  </dd>
 

 
  <dt id="ini.mysql.max-links">
   <code class="parameter">mysql.max_links</code>
   <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The maximum number of MySQL connections per process, including
    persistent connections.
   </span>
  </dd>
 

 
  <dt id="ini.mysql.trace-mode">
   <code class="parameter">mysql.trace_mode</code>
   <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
  </dt>
  <dd>
   <span class="simpara">
    Trace mode. When <code class="literal">mysql.trace_mode</code> is enabled, warnings
    for table/index scans, non free result sets, and SQL-Errors will be
    displayed. (Introduced in PHP 4.3.0)
   </span>
  </dd>
 

 
  <dt id="ini.mysql.default-port">
   <code class="parameter">mysql.default_port</code>
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The default TCP port number to use when connecting to
    the database server if no other port is specified. If
    no default is specified, the port will be obtained
    from the <var class="envar">MYSQL_TCP_PORT</var> environment
    variable, the <code class="literal">mysql-tcp</code> entry in
    <var class="filename">/etc/services</var> or the compile-time
    <strong><code>MYSQL_PORT</code></strong> constant, in that order. Win32
    will only use the <strong><code>MYSQL_PORT</code></strong> constant.
   </span>
  </dd>
 

 
  <dt id="ini.mysql.default-socket">
   <code class="parameter">mysql.default_socket</code>
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The default socket name to use when connecting to a local
    database server if no other socket name is specified.
   </span>
  </dd>
 
  
  <dt id="ini.mysql.default-host">
   <code class="parameter">mysql.default_host</code>
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The default server host to use when connecting to the database
    server if no other host is specified. Doesn&#039;t apply in
    <a href="ini.core.php#ini.sql.safe-mode" class="link">SQL safe mode</a>.
   </span>
  </dd>
 

 
  <dt id="ini.mysql.default-user">
   <code class="parameter">mysql.default_user</code>
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The default user name to use when connecting to the database
    server if no other name is specified. Doesn&#039;t apply in
    <a href="ini.core.php#ini.sql.safe-mode" class="link">SQL safe mode</a>.
   </span>
  </dd>
 

 
  <dt id="ini.mysql.default-password">
   <code class="parameter">mysql.default_password</code>
   <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
  </dt>
  <dd>
   <span class="simpara">
    The default password to use when connecting to the database
    server if no other password is specified. Doesn&#039;t apply in
    <a href="ini.core.php#ini.sql.safe-mode" class="link">SQL safe mode</a>.
   </span>
  </dd>
 
  
  <dt id="ini.mysql.connect-timeout">
   <code class="parameter">mysql.connect_timeout</code>
   <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
  </dt>
  <dd>
   <span class="simpara">
    Connect timeout in seconds. On Linux this timeout is also used for
    waiting for the first answer from the server.
   </span>
  </dd>
 

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