<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h2 class="title">
      <a name="apis-ruby">
      </a>
      31.11 MySQL Ruby APIs
     </h2>
    </div>
   </div>
  </div>
  <div class="toc">
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="apis-ruby-mysqlruby.html">
       31.11.1 The MySQL/Ruby API
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="apis-ruby-rubymysql.html">
       31.11.2 The Ruby/MySQL API
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <a class="indexterm" name="idm46045060297376">
  </a>
  <p>
   The
   <code class="literal">
    mysql2
   </code>
   Ruby gem provides an API for
    connecting to MySQL, performing queries, and iterating through
    results; it is intended to support MySQL 5.7 and MySQL 8.0. For more
    information, see the
   <a class="ulink" href="https://rubygems.org/gems/mysql2/" target="_blank">
    <code class="literal">
     mysql2
    </code>
    page at RubyGems.org
   </a>
   or the project's
   <a class="ulink" href="https://github.com/brianmario/mysql2" target="_blank">
    GitHub
    page
   </a>
   .
  </p>
  <p>
   For background and syntax information about the Ruby language, see
   <a class="ulink" href="http://www.ruby-lang.org" target="_blank">
    Ruby Programming
    Language
   </a>
   .
  </p>
 </div>
 <br/>
</div>
