<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pdo-cubrid.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'ref.pdo-cubrid.connection.php',
    1 => 'PDO_CUBRID DSN',
    2 => 'Connecting to CUBRID databases',
  ),
  'up' => 
  array (
    0 => 'ref.pdo-cubrid.php',
    1 => 'CUBRID PDO Driver',
  ),
  'prev' => 
  array (
    0 => 'ref.pdo-cubrid.php',
    1 => 'CUBRID PDO Driver',
  ),
  'next' => 
  array (
    0 => 'pdo.cubrid-schema.php',
    1 => 'PDO::cubrid_schema',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pdo_cubrid/reference.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ref.pdo-cubrid.connection" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">PDO_CUBRID DSN</h1>
    <p class="verinfo">(PECL PDO_CUBRID &gt;= 8.3.0.0001)</p><p class="refpurpose"><span class="refname">PDO_CUBRID DSN</span> &mdash; <span class="dc-title">Connecting to CUBRID databases</span></p>

   </div>

   <div class="refsect1 description" id="refsect1-ref.pdo-cubrid.connection-description">
    <h3 class="title">Опис</h3>
    <p class="para">
     The PDO_CUBRID Data Source Name (DSN) is composed of the following elements, delimited by semicolons:
     <dl>
      
       <dt>DSN prefix</dt>
       <dd>
        <p class="para">
        The DSN prefix is <strong class="userinput"><code>cubrid:</code></strong>.
        </p>
       </dd>
      
      
       <dt><code class="literal">host</code></dt>
       <dd>
        <p class="para">
         The hostname on which the database server resides.
        </p>
       </dd>
      
      
       <dt><code class="literal">port</code></dt>
       <dd>
        <p class="para">
         The port on which the database server is running.
        </p>
       </dd>
      
      
       <dt><code class="literal">dbname</code></dt>
       <dd>
        <p class="para">
         The name of the database.
        </p>
       </dd>
      
     </dl>
    </p>
   </div>


   <div class="refsect1 notes" id="refsect1-ref.pdo-cubrid.connection-notes">
    <h3 class="title">Примітки</h3>
    <blockquote class="note"><p><strong class="note">Зауваження</strong>: 
     <p class="para">
      When you estalish the connection to CUBRID, you should give username and
      password except DSN.
     </p>
    </p></blockquote>
   </div>


   <div class="refsect1 examples" id="refsect1-ref.pdo-cubrid.connection-examples">
    <h3 class="title">Приклади</h3>
    <p class="para">
     <div class="example" id="example-5">
      <p><strong>Приклад #1 PDO_CUBRID DSN examples</strong></p>
      <div class="example-contents"><p>
       The following example shows a PDO_CUBRID DSN for connecting to a CUBRID database:
       <div class="example-contents"><div class="cdata"><pre>
cubrid:host=localhost;port=33000;dbname=demodb
</pre></div>
       </div>

      </p></div>
     </div>
    </p>
   </div>

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