<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h2 class="title">
      <a name="perl-support">
      </a>
      2.10 Perl Installation Notes
     </h2>
    </div>
   </div>
  </div>
  <div class="toc">
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="perl-installation.html">
       2.10.1 Installing Perl on Unix
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="activestate-perl.html">
       2.10.2 Installing ActiveState Perl on Windows
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="perl-support-problems.html">
       2.10.3 Problems Using the Perl DBI/DBD Interface
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <a class="indexterm" name="idm46045326528176">
  </a>
  <a class="indexterm" name="idm46045326526688">
  </a>
  <p>
   The Perl
   <code class="literal">
    DBI
   </code>
   module provides a generic interface
    for database access. You can write a
   <code class="literal">
    DBI
   </code>
   script
    that works with many different database engines without change. To
    use
   <code class="literal">
    DBI
   </code>
   , you must install the
   <code class="literal">
    DBI
   </code>
   module, as well as a DataBase Driver (DBD)
    module for each type of database server you want to access. For
    MySQL, this driver is the
   <code class="literal">
    DBD::mysql
   </code>
   module.
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    Perl support is not included with MySQL distributions. You can
      obtain the necessary modules from
    <a class="ulink" href="http://search.cpan.org" target="_blank">
     http://search.cpan.org
    </a>
    for Unix, or by using the
      ActiveState
    <span class="command">
     <strong>
      ppm
     </strong>
    </span>
    program on Windows. The
      following sections describe how to do this.
   </p>
  </div>
  <p>
   The
   <code class="literal">
    DBI
   </code>
   /
   <code class="literal">
    DBD
   </code>
   interface requires
    Perl 5.6.0, and 5.6.1 or later is preferred. DBI
   <span class="emphasis">
    <em>
     does not
    work
    </em>
   </span>
   if you have an older version of Perl. You should use
   <code class="literal">
    DBD::mysql
   </code>
   4.009 or higher. Although earlier
    versions are available, they do not support the full functionality
    of MySQL 8.4.
  </p>
 </div>
 <br/>
</div>
