<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h2 class="title">
      <a name="faqs-c-api">
      </a>
      A.13 MySQL 8.4 FAQ: C API, libmysql
     </h2>
    </div>
   </div>
  </div>
  <a class="indexterm" name="idm46045055076832">
  </a>
  <a class="indexterm" name="idm46045055075408">
  </a>
  <a class="indexterm" name="idm46045055073952">
  </a>
  <a class="indexterm" name="idm46045055072464">
  </a>
  <p>
   Frequently asked questions about MySQL C API and libmysql.
  </p>
  <div class="qandaset">
   <a name="idm46045055070512">
   </a>
   <dl>
    <dt>
     A.13.1.
     <a href="faqs-c-api.html#faq-mysql-c-api-what-is-native-c-api">
      What is “MySQL Native C API”? What are typical
        benefits and use cases?
     </a>
    </dt>
    <dt>
     A.13.2.
     <a href="faqs-c-api.html#faq-mysql-c-api-which-version-to-use">
      Which version of libmysql should I use?
     </a>
    </dt>
    <dt>
     A.13.3.
     <a href="faqs-c-api.html#faq-mysql-c-api-using-x-devapi">
      What if I want to use the “NoSQL” X DevAPI?
     </a>
    </dt>
    <dt>
     A.13.4.
     <a href="faqs-c-api.html#faq-mysql-c-api-download">
      How to I download libmysql?
     </a>
    </dt>
    <dt>
     A.13.5.
     <a href="faqs-c-api.html#faq-mysql-c-api-documentation">
      Where is the documentation?
     </a>
    </dt>
    <dt>
     A.13.6.
     <a href="faqs-c-api.html#faq-mysql-c-api-bugs">
      How do I report bugs?
     </a>
    </dt>
    <dt>
     A.13.7.
     <a href="faqs-c-api.html#faq-mysql-c-api-compile">
      Is it possible to compile the library myself?
     </a>
    </dt>
   </dl>
   <table border="0" style="width: 100%;">
    <colgroup>
     <col align="left" width="1%"/>
     <col/>
    </colgroup>
    <tbody>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-what-is-native-c-api">
       </a>
       <a name="idm46045055069760">
       </a>
       <p>
        <b>
         A.13.1.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        What is
        <span class="quote">
         “
         <span class="quote">
          MySQL Native C API
         </span>
         ”
        </span>
        ? What are typical
        benefits and use cases?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <p>
        libmysql is a C-based API that you can use in C applications to
        connect with the MySQL database server. It is also itself used
        as the foundation for drivers for standard database APIs like
        ODBC, Perl's DBI, and Python's DB API.
       </p>
      </td>
     </tr>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-which-version-to-use">
       </a>
       <a name="idm46045055067024">
       </a>
       <p>
        <b>
         A.13.2.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        Which version of libmysql should I use?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <p>
        For MySQL 8.4 we recommend libmysql 8.4.
       </p>
      </td>
     </tr>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-using-x-devapi">
       </a>
       <a name="idm46045055065024">
       </a>
       <p>
        <b>
         A.13.3.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        What if I want to use the
        <span class="quote">
         “
         <span class="quote">
          NoSQL
         </span>
         ”
        </span>
        X DevAPI?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <p>
        For C-language and X DevApi Document Store for MySQL, we
        recommend MySQL Connector/C++. Connector/C++ has compatible C
        headers. (This is not applicable to MySQL 5.7 or before.)
       </p>
      </td>
     </tr>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-download">
       </a>
       <a name="idm46045055062448">
       </a>
       <p>
        <b>
         A.13.4.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        How to I download libmysql?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <div class="itemizedlist">
        <ul class="itemizedlist" style="list-style-type: disc; ">
         <li class="listitem">
          <p>
           Linux: The Client Utilities Package is available from the
           <a class="ulink" href="https://dev.mysql.com/downloads/mysql/" target="_top">
            MySQL
            Community Server
           </a>
           download page.
          </p>
         </li>
         <li class="listitem">
          <p>
           Repos: The Client Utilities Package is available from the
           <a class="ulink" href="https://dev.mysql.com/downloads/repo/yum/" target="_top">
            Yum
           </a>
           ,
           <a class="ulink" href="https://dev.mysql.com/downloads/repo/apt/" target="_top">
            APT
           </a>
           ,
           <a class="ulink" href="https://dev.mysql.com/downloads/repo/suse/" target="_top">
            SuSE
            repositories
           </a>
           .
          </p>
         </li>
         <li class="listitem">
          <p>
           Windows: The Client Utilities Package is available from
           <a class="ulink" href="https://dev.mysql.com/downloads/installer/" target="_top">
            Windows
            Installer
           </a>
           .
          </p>
         </li>
        </ul>
       </div>
      </td>
     </tr>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-documentation">
       </a>
       <a name="idm46045055054080">
       </a>
       <p>
        <b>
         A.13.5.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        Where is the documentation?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <p>
        See
        <a class="ulink" href="/doc/c-api/8.4/en/" target="_top">
         MySQL 8.4 C API Developer Guide
        </a>
        .
       </p>
      </td>
     </tr>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-bugs">
       </a>
       <a name="idm46045055051424">
       </a>
       <p>
        <b>
         A.13.6.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        How do I report bugs?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <p>
        Please report any bugs or inconsistencies you observe to our
        <a class="ulink" href="https://bugs.mysql.com/" target="_blank">
         Bugs Database
        </a>
        .
        Select the C API Client as shown.
       </p>
      </td>
     </tr>
     <tr class="question">
      <td align="left" valign="top">
       <a name="faq-mysql-c-api-compile">
       </a>
       <a name="idm46045055048704">
       </a>
       <p>
        <b>
         A.13.7.
        </b>
       </p>
      </td>
      <td align="left" valign="top">
       <p>
        Is it possible to compile the library myself?
       </p>
      </td>
     </tr>
     <tr class="answer">
      <td align="left" valign="top">
      </td>
      <td align="left" valign="top">
       <p>
        Compiling MySQL Server also compiles libmysqlclient; there is
        not a way to only compile libmysqlclient. For related
        information, see
        <a class="ulink" href="/doc/c-api/8.4/en/c-api-implementations.html" target="_top">
         MySQL C API Implementations
        </a>
        .
       </p>
      </td>
     </tr>
    </tbody>
   </table>
  </div>
 </div>
 <br/>
</div>
