linux mysql帮助文档,在 Linux 上安装 MySQL
## 2.5 在 Linux 上安裝 MySQL
Linux 支持多種不同的 Linux 安裝解決方案. We recommend that you use one of the distributions from Oracle, for which several methods for installation are available:
**表 2.7 Linux 安裝方法和信息**
| 類型 | 設置方法 | 附加信息 |
|:---:|:---:|:---:|
| Apt | 啟用 [MySQL Apt repository](https://dev.mysql.com/downloads/repo/apt/) | [文檔](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-apt-repo.html) |
| Yum | 啟用 [MySQL Yum repository](https://dev.mysql.com/downloads/repo/yum/) | [文檔](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html) |
| Zypper | 啟用 [MySQL SLES repository](https://dev.mysql.com/downloads/repo/suse/) | [文檔](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-sles-repo.html) |
| RPM | [下載](https://dev.mysql.com/downloads/mysql/)通用包 | [文檔](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-rpm.html) |
| DEB | [下載](https://dev.mysql.com/downloads/mysql/)通用包 | [文檔](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-debian.html) |
| Generic | [下載](https://dev.mysql.com/downloads/mysql/)通用包 | [文檔](https://dev.mysql.com/doc/refman/8.0/en/binary-installation.html) |
| Source | 從[源碼](https://dev.mysql.com/downloads/mysql/)編譯 | [文檔](https://dev.mysql.com/doc/refman/8.0/en/source-installation.html) |
| Docker | 使用 Docker Hub, Docker Store, 或者 Oracle 鏡像托管 | [文檔](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-docker.html) |
| Oracle Unbreakable Linux Network (Orace 堅不可摧的 Linux 網絡) | 使用 ULN 通道 | [文檔](https://dev.mysql.com/doc/refman/8.0/en/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 will also normally be unable to install development milestone releases (DMRs), as 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”](https://dev.mysql.com/doc/refman/8.0/en/linux-installation-native.html).
> **注意**
>
> 對于很多 Linux 安裝, 你希望將 MySQL 設置為在計算機啟動時自動啟動. 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](https://dev.mysql.com/doc/refman/8.0/en/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”](https://dev.mysql.com/doc/refman/8.0/en/mysql-server.html).
總結
以上是生活随笔為你收集整理的linux mysql帮助文档,在 Linux 上安装 MySQL的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 美股周二:拼多多大涨超18% 市值差阿里
- 下一篇: java连接mysql数据库连接池_ja