Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9586

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Runtime Configuration</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysql.installation.html">Installation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysql.resources.html">Resource Types</a></div>
 <div class="up"><a href="mysql.setup.html">Installing/Configuring</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><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 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.html#ini.mysql.allow-local-infile" class="link">mysql.allow_local_infile</a></td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.allow-persistent" class="link">mysql.allow_persistent</a></td>
      <td>&quot;1&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.max-persistent" class="link">mysql.max_persistent</a></td>
      <td>&quot;-1&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.max-links" class="link">mysql.max_links</a></td>
      <td>&quot;-1&quot;</td>
      <td>PHP_INI_SYSTEM</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.trace-mode" class="link">mysql.trace_mode</a></td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>Available since PHP 4.3.0.</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.default-port" class="link">mysql.default_port</a></td>
      <td>NULL</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.default-socket" class="link">mysql.default_socket</a></td>
      <td>NULL</td>
      <td>PHP_INI_ALL</td>
      <td>Available since PHP 4.0.1.</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.default-host" class="link">mysql.default_host</a></td>
      <td>NULL</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.default-user" class="link">mysql.default_user</a></td>
      <td>NULL</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.default-password" class="link">mysql.default_password</a></td>
      <td>NULL</td>
      <td>PHP_INI_ALL</td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="mysql.configuration.html#ini.mysql.connect-timeout" class="link">mysql.connect_timeout</a></td>
      <td>&quot;60&quot;</td>
      <td>PHP_INI_ALL</td>
      <td>PHP_INI_SYSTEM in PHP &lt;= 4.3.2. Available since PHP 4.3.0.</td>
     </tr>

    </tbody>
   
  </table>

  For further details and definitions of the
PHP_INI_* modes, see the <a href="configuration.changes.modes.html" 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>

<p class="para">
 <dl>

  
  <dt id="ini.mysql.allow-local-infile">
   <span class="term">
    <em><code class="parameter">mysql.allow_local_infile</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </span>
   <dd>

    <p class="para">
     Allow accessing, from PHP&#039;s perspective, local files with LOAD DATA
     statements
    </p>
   </dd>

  </dt>


  <dt id="ini.mysql.allow-persistent">
   <span class="term">
    <em><code class="parameter">mysql.allow_persistent</code></em>
    <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
   </span>
   <dd>

    <p class="para">
     Whether to allow
     <a href="features.persistent-connections.html" class="link">persistent connections</a>
     to MySQL.
    </p>
   </dd>

  </dt>

  
  <dt id="ini.mysql.max-persistent">
   <span class="term">
    <em><code class="parameter">mysql.max_persistent</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </span>
   <dd>

    <p class="para">
     The maximum number of persistent MySQL connections per
     process.
    </p>
   </dd>

  </dt>

  
  <dt id="ini.mysql.max-links">
   <span class="term">
    <em><code class="parameter">mysql.max_links</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </span>
   <dd>

    <p class="para">
     The maximum number of MySQL connections per process, including
     persistent connections.
    </p>
   </dd>

  </dt>

  
  <dt id="ini.mysql.trace-mode">
   <span class="term">
    <em><code class="parameter">mysql.trace_mode</code></em>
    <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
   </span>
   <dd>

    <p class="para">
     Trace mode. When <em>mysql.trace_mode</em> is enabled, warnings 
     for table/index scans, non free result sets, and SQL-Errors will be 
     displayed. (Introduced in PHP 4.3.0)
    </p>
   </dd>

  </dt>


  <dt id="ini.mysql.default-port">
   <span class="term">
    <em><code class="parameter">mysql.default_port</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </span>
   <dd>

    <p class="para">
     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 <span class="envar">MYSQL_TCP_PORT</span> environment
     variable, the <em>mysql-tcp</em> 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.
    </p>
   </dd>

  </dt>

  
  <dt id="ini.mysql.default-socket">
   <span class="term">
    <em><code class="parameter">mysql.default_socket</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </span>
   <dd>

    <p class="para">
     The default socket name to use when connecting to a local
     database server if no other socket name is specified.
    </p>
   </dd>

  </dt>

   <dt id="ini.mysql.default-host">
   <span class="term">
    <em><code class="parameter">mysql.default_host</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </span>
   <dd>

    <p class="para">
     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.html#ini.sql.safe-mode" class="link">SQL safe mode</a>.
    </p>
   </dd>

  </dt>

  
  <dt id="ini.mysql.default-user">
   <span class="term">
    <em><code class="parameter">mysql.default_user</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </span>
   <dd>

    <p class="para">
     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.html#ini.sql.safe-mode" class="link">SQL safe mode</a>.
    </p>
   </dd>

  </dt>

  
  <dt id="ini.mysql.default-password">
   <span class="term">
    <em><code class="parameter">mysql.default_password</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </span>
   <dd>

    <p class="para">
     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.html#ini.sql.safe-mode" class="link">SQL safe mode</a>.
    </p>
   </dd>

  </dt>

   <dt id="ini.mysql.connect-timeout">
   <span class="term">
    <em><code class="parameter">mysql.connect_timeout</code></em>
    <span class="type"><a href="language.types.integer.html" class="type integer">integer</a></span>
   </span>
   <dd>

    <p class="para">
     Connect timeout in seconds. On Linux this timeout is also used for
     waiting for the first answer from the server.
    </p>
   </dd>

  </dt>

  
 </dl>

 </p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mysql.installation.html">Installation</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mysql.resources.html">Resource Types</a></div>
 <div class="up"><a href="mysql.setup.html">Installing/Configuring</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>