<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h2 class="title">
      <a name="linux-installation">
      </a>
      2.5 Installing MySQL on Linux
     </h2>
    </div>
   </div>
  </div>
  <div class="toc">
   <dl class="toc">
    <dt>
     <span class="section">
      <a href="linux-installation-yum-repo.html">
       2.5.1 Installing MySQL on Linux Using the MySQL Yum Repository
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-apt-repo.html">
       2.5.2 Installing MySQL on Linux Using the MySQL APT Repository
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-sles-repo.html">
       2.5.3 Using the MySQL SLES Repository
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-rpm.html">
       2.5.4 Installing MySQL on Linux Using RPM Packages from Oracle
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-debian.html">
       2.5.5 Installing MySQL on Linux Using Debian Packages from Oracle
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-docker.html">
       2.5.6 Deploying MySQL on Linux with Docker Containers
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-native.html">
       2.5.7 Installing MySQL on Linux from the Native Software Repositories
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="linux-installation-juju.html">
       2.5.8 Installing MySQL on Linux with Juju
      </a>
     </span>
    </dt>
    <dt>
     <span class="section">
      <a href="using-systemd.html">
       2.5.9 Managing MySQL Server with systemd
      </a>
     </span>
    </dt>
   </dl>
  </div>
  <p>
   Linux supports a number of different solutions for installing MySQL.
    We recommend that you use one of the distributions from Oracle, for
    which several methods for installation are available:
  </p>
  <div class="table">
   <a name="linux-installation-methods">
   </a>
   <p class="title">
    <b>
     Table 2.7 Linux Installation Methods and Information
    </b>
   </p>
   <div class="table-contents">
    <table>
     <colgroup>
      <col style="width: 30%"/>
      <col style="width: 30%"/>
      <col style="width: 40%"/>
     </colgroup>
     <thead>
      <tr>
       <th scope="col">
        Type
       </th>
       <th scope="col">
        Setup Method
       </th>
       <th scope="col">
        Additional Information
       </th>
      </tr>
     </thead>
     <tbody>
      <tr>
       <th scope="row">
        Apt
       </th>
       <td>
        Enable the
        <a class="ulink" href="https://dev.mysql.com/downloads/repo/apt/" target="_top">
         MySQL Apt
          repository
        </a>
       </td>
       <td>
        <a class="link" href="linux-installation-apt-repo.html" title="2.5.2 Installing MySQL on Linux Using the MySQL APT Repository">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        Yum
       </th>
       <td>
        Enable the
        <a class="ulink" href="https://dev.mysql.com/downloads/repo/yum/" target="_top">
         MySQL Yum
          repository
        </a>
       </td>
       <td>
        <a class="link" href="linux-installation-yum-repo.html" title="2.5.1 Installing MySQL on Linux Using the MySQL Yum Repository">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        Zypper
       </th>
       <td>
        Enable the
        <a class="ulink" href="https://dev.mysql.com/downloads/repo/suse/" target="_top">
         MySQL SLES
          repository
        </a>
       </td>
       <td>
        <a class="link" href="linux-installation-sles-repo.html" title="2.5.3 Using the MySQL SLES Repository">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        RPM
       </th>
       <td>
        <a class="ulink" href="https://dev.mysql.com/downloads/mysql/" target="_top">
         Download
        </a>
        a specific
          package
       </td>
       <td>
        <a class="link" href="linux-installation-rpm.html" title="2.5.4 Installing MySQL on Linux Using RPM Packages from Oracle">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        DEB
       </th>
       <td>
        <a class="ulink" href="https://dev.mysql.com/downloads/mysql/" target="_top">
         Download
        </a>
        a specific
          package
       </td>
       <td>
        <a class="link" href="linux-installation-debian.html" title="2.5.5 Installing MySQL on Linux Using Debian Packages from Oracle">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        Generic
       </th>
       <td>
        <a class="ulink" href="https://dev.mysql.com/downloads/mysql/" target="_top">
         Download
        </a>
        a generic
          package
       </td>
       <td>
        <a class="link" href="binary-installation.html" title="2.2 Installing MySQL on Unix/Linux Using Generic Binaries">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        Source
       </th>
       <td>
        Compile from
        <a class="ulink" href="https://dev.mysql.com/downloads/mysql/" target="_top">
         source
        </a>
       </td>
       <td>
        <a class="link" href="source-installation.html" title="2.8 Installing MySQL from Source">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        Docker
       </th>
       <td>
        Use the
        <a class="ulink" href="https://container-registry.oracle.com/" target="_blank">
         Oracle
          Container Registry
        </a>
        . You can also use
        <a class="ulink" href="https://support.oracle.com/" target="_blank">
         My Oracle
          Support
        </a>
        for the MySQL Enterprise Edition.
       </td>
       <td>
        <a class="link" href="linux-installation-docker.html" title="2.5.6 Deploying MySQL on Linux with Docker Containers">
         Documentation
        </a>
       </td>
      </tr>
      <tr>
       <th scope="row">
        Oracle Unbreakable Linux Network
       </th>
       <td>
        Use ULN channels
       </td>
       <td>
        <a class="link" href="uln-installation.html" title="2.6 Installing MySQL Using Unbreakable Linux Network (ULN)">
         Documentation
        </a>
       </td>
      </tr>
     </tbody>
    </table>
   </div>
  </div>
  <br class="table-break"/>
  <p>
   As an alternative, you can use the package manager on your system to
    automatically download and install MySQL with packages from the
    native software repositories of your Linux distribution. These
    native packages are often several versions behind the currently
    available release. You are also normally unable to install
    innovation releases, since these are not usually made available in
    the native repositories. For more information on using the native
    package installers, see
   <a class="xref" href="linux-installation-native.html" title="2.5.7 Installing MySQL on Linux from the Native Software Repositories">
    Section 2.5.7, “Installing MySQL on Linux from the Native Software Repositories”
   </a>
   .
  </p>
  <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
   <div class="admon-title">
    Note
   </div>
   <p>
    For many Linux installations, you want to set up MySQL to be
      started automatically when your machine starts. Many of the native
      package installations perform this operation for you, but for
      source, binary and RPM solutions you may need to set this up
      separately. The required script,
    <a class="link" href="mysql-server.html" title="6.3.3 mysql.server — MySQL Server Startup Script">
     <span class="command">
      <strong>
       mysql.server
      </strong>
     </span>
    </a>
    ,
      can be found in the
    <code class="filename">
     support-files
    </code>
    directory
      under the MySQL installation directory or in a MySQL source tree.
      You can install it as
    <code class="filename">
     /etc/init.d/mysql
    </code>
    for
      automatic MySQL startup and shutdown. See
    <a class="xref" href="mysql-server.html" title="6.3.3 mysql.server — MySQL Server Startup Script">
     Section 6.3.3, “mysql.server — MySQL Server Startup Script”
    </a>
    .
   </p>
  </div>
 </div>
 <br/>
</div>
