## 2.5 Installing MySQL on Linux

[2.5.1 Installing MySQL on Linux Using the MySQL Yum Repository](linux-installation-yum-repo.html)
[2.5.2 Installing MySQL on Linux Using the MySQL APT Repository](linux-installation-apt-repo.html)
[2.5.3 Installing MySQL on Linux Using the MySQL SLES Repository](linux-installation-sles-repo.html)
[2.5.4 Installing MySQL on Linux Using RPM Packages from Oracle](linux-installation-rpm.html)
[2.5.5 Installing MySQL on Linux Using Debian Packages from Oracle](linux-installation-debian.html)
[2.5.6 Deploying MySQL on Linux with Docker](linux-installation-docker.html)
[2.5.7 Installing MySQL on Linux from the Native Software Repositories](linux-installation-native.html)
[2.5.8 Installing MySQL on Linux with Juju](linux-installation-juju.html)
[2.5.9 Managing MySQL Server with systemd](using-systemd.html)

 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:

[]()

**Table 2.8 Linux Installation Methods and Information**

|              Type              |                                                                                                     Setup Method                                                                                                      |              Additional Information              |
|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|
|              Apt               |                                                                     Enable the [MySQL Apt repository](https://dev.mysql.com/downloads/repo/apt/)                                                                      |[Documentation](linux-installation-apt-repo.html) |
|              Yum               |                                                                     Enable the [MySQL Yum repository](https://dev.mysql.com/downloads/repo/yum/)                                                                      |[Documentation](linux-installation-yum-repo.html) |
|             Zypper             |                                                                    Enable the [MySQL SLES repository](https://dev.mysql.com/downloads/repo/suse/)                                                                     |[Documentation](linux-installation-sles-repo.html)|
|              RPM               |                                                                         [Download](https://dev.mysql.com/downloads/mysql/) a specific package                                                                         |   [Documentation](linux-installation-rpm.html)   |
|              DEB               |                                                                         [Download](https://dev.mysql.com/downloads/mysql/) a specific package                                                                         | [Documentation](linux-installation-debian.html)  |
|            Generic             |                                                                         [Download](https://dev.mysql.com/downloads/mysql/) a generic package                                                                          |    [Documentation](binary-installation.html)     |
|             Source             |                                                                             Compile from [source](https://dev.mysql.com/downloads/mysql/)                                                                             |    [Documentation](source-installation.html)     |
|             Docker             |Use the [Oracle Container Registry](https://container-registry.oracle.com/). You can also use Docker Hub for MySQL Community Edition and [My Oracle Support](https://support.oracle.com/) for MySQL Enterprise Edition.| [Documentation](linux-installation-docker.html)  |
|Oracle Unbreakable Linux Network|                                                                                                   Use ULN channels                                                                                                    |      [Documentation](uln-installation.html)      |

 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 development milestone releases (DMRs), since these are not usually made available in the native repositories. For more information on using the native package installers, see [Section 2.5.7, “Installing MySQL on Linux from the Native Software Repositories”](linux-installation-native.html).

Note

 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, [**mysql.server**](mysql-server.html), can be found in the `support-files` directory under the MySQL installation directory or in a MySQL source tree. You can install it as `/etc/init.d/mysql` for automatic MySQL startup and shutdown. See [Section 4.3.3, “mysql.server — MySQL Server Startup Script”](mysql-server.html).

