MySQL, MariaDBの各種インストール方法とEOLまとめ

# はじめに

MySQL, mariaDBの各種インストール方法とそれぞれのEOLを纏めてみます。
EOLは**無償でパッチ提供が継続されるであろう期日**とし、各提供者が定義している個別のサポート名称や内容をあまり考慮していません。


# サマリ

|導入方法|OS|DB|EOL|参考|
|----|----|----|----|----|
|OS標準|CentOS6|MySQL5.1|2017-05-10|[^1] [^2]|
|OS標準|CentOS7|MariaDB5.5|2020-11-30|[^1] [^2]|
|SCL|CentOS6,7|MySQL5.5|2016-10|[^3]|
|SCL|CentOS6,7|MySQL5.6|2018-04|[^3]|
|SCL|CentOS6,7|MySQL5.7|2019-11|[^3]|
|SCL|CentOS7|MySQL8.0|2023-04|[^3]|
|SCL|CentOS6,7|MariaDB5.5|2016-10|[^3]|
|SCL|CentOS6,7|MariaDB10.0|2018-04|[^3]|
|SCL|CentOS6,7|MariaDB10.1|2019-05|[^3]|
|SCL|CentOS6,7|MariaDB10.2|2020-10|[^3]|
|SCL|CentOS6,7|MariaDB10.3|2023-06|[^3]|
|SCL|CentOS7|MariaDB10.5|2024-06|[^3]|
|AppStream|CentOS8|MySQL8.0|2023-04|[^4] [^9]|
|AppStream|CentOS8|MariaDB10.3|2029-05|[^4] [^9]|
|AppStream|Alma/Rocky9|MySQL8.0|2026-04|[^4]|
|AppStream|Alma/Rocky9|MariaDB10.5|2032-05|[^4]|
|OS標準|Debian8|MySQL5.5|2020-06-30|[^5]|
|OS標準|Debian8|MariaDB10.0|2020-06-30|[^5]|
|OS標準|Debian9|MariaDB10.1|2022-06-30|[^5]|
|OS標準|Debian10|MariaDB10.3|2024-xx-xx|[^5]|
|OS標準|Debian11|MariaDB10.5|2026-xx-xx|[^5]|
|OS標準|Debian12|MariaDB10.11|2028-xx-xx|[^5]|
|OS標準|Ubuntu14.04|MySQL5.5|2019-04|[^6]|
|OS標準|Ubuntu14.04|MariaDB5.5|2019-04|[^6]|
|OS標準|Ubuntu16.04|MySQL5.7|2021-04|[^6]|
|OS標準|Ubuntu16.04|MariaDB10.0|2021-04|[^6]|
|OS標準|Ubuntu18.04|MySQL5.7|2023-04|[^6]|
|OS標準|Ubuntu18.04|MariaDB10.1|2023-04|[^6]|
|OS標準|Ubuntu20.04|MySQL8.0|2025-04|[^6]|
|OS標準|Ubuntu22.04|MySQL8.0|2027-04|[^6]|
|OS標準|Ubuntu20.04|MariaDB10.3|2025-04|[^6]|
|OS標準|Ubuntu22.04|MariaDB10.6|2027-04|[^6]|
|その他|-|MySQL5.0|2011-12|[^20] [^21]|
|その他|-|MySQL5.1|2013-12|[^20] [^21]|
|その他|-|MySQL5.5|2018-12|[^20] [^21]|
|その他|-|MySQL5.6|2021-02|[^20] [^21]|
|その他|-|MySQL5.7|2023-10|[^20] [^21]|
|その他|-|MySQL8.0|2026-04|[^20] [^21]|


[^1]: [Red Hat Enterprise Linux Life Cycle - Red Hat Customer Portal](https://access.redhat.com/support/policy/updates/errata)
[^2]: [About/Product - CentOS Wiki](https://wiki.centos.org/About/Product)
[^3]: [Red Hat Software Collections Product Life Cycle - Red Hat Customer Portal](https://access.redhat.com/support/policy/updates/rhscl)
[^4]: [Red Hat Enterprise Linux 8 Application Streams Life Cycle - Red Hat Customer Portal](https://access.redhat.com/node/4079021)
[^5]: [LTS \- Debian Wiki](https://wiki.debian.org/LTS)
[^6]: [Releases - Ubuntu Wiki](https://wiki.ubuntu.com/Releases)
[^7]: [Index of /centos/6/sclo/x86_64](http://mirror.centos.org/centos/6/sclo/x86_64/)
[^8]: [Index of /centos/7/sclo/x86_64](http://mirror.centos.org/centos/7/sclo/x86_64/)
[^9]: [Index of /centos/8/AppStream/x86_64](http://mirror.centos.org/centos/8/AppStream/x86_64/)

[^20]: [MySQL Community Edition の EOL について](https://qiita.com/witchcraze/items/820dd848d48dfb8a5f96)
[^21]: [Oracle Lifetime Support Policy for Technology Products Guide](https://www.oracle.com/us/assets/lifetime-support-technology-069183.pdf)

# 各種導入方法

## OS標準

- CentOS
    - [CentOS6 MySQL5.1](https://qiita.com/witchcraze/items/b40b3866a1e041a2b0c5)
    - [CentOS7 MariaDB5.5](https://qiita.com/witchcraze/items/859846e3625918a239c4)
- Debian
    - [Debian8 MySQL5.5](https://qiita.com/witchcraze/items/e48da560bf8a67003c13)
    - [Debian8 MariaDB10.0](https://qiita.com/witchcraze/items/2b13edfa426dc7207dc3)
    - [Debian9 MariaDB10.1](https://qiita.com/witchcraze/items/b04ef27fda23ce991b9b)
    - [Debian10 MariaDB10.3](https://qiita.com/witchcraze/items/7bc07e44767a8c881023)
    - [Debian11 MariaDB10.5](https://qiita.com/witchcraze/items/714664c810d5f51b03aa)
    - [Debian12 MariaDB 10.11](https://qiita.com/witchcraze/items/b62f8a6ce455ba1dad5a)
- Ubuntu
    - [Ubuntu14.04 MySQL5.5](https://qiita.com/witchcraze/items/8237cf88f56f79835d5c)
    - [Ubuntu14.04 MariaDB5.5](https://qiita.com/witchcraze/items/8053a1d33d680e71e965)
    - [Ubuntu16.04 MySQL5.7](https://qiita.com/witchcraze/items/46ec7c438f4882b3d813)
    - [Ubuntu16.04 MariaDB10.0](https://qiita.com/witchcraze/items/0cd3cc32b887a9be1356)
    - [Ubuntu18.04 MySQL5.7](https://qiita.com/witchcraze/items/759201593e2b89fed632)
    - [Ubuntu18.04 MariaDB10.1](https://qiita.com/witchcraze/items/d598763b6665ccd752b8)
    - [Ubuntu 20.04 MySQL 8.0](https://qiita.com/witchcraze/items/c5573790fba73f973077)
    - [Ubuntu 20.04 MariaDB10.3](https://qiita.com/witchcraze/items/76612212d772f076a92f)
    - [Ubuntu 22.04 MySQL 8.0](https://qiita.com/witchcraze/items/8bf70abaaaedeafc3580)
    - [Ubuntu 22.04 MariaDB 10.6](https://qiita.com/witchcraze/items/b94ee133e48ce81febfa)

## CentOS + Software Collections(SCL)

- CentOS6
    - [CentOS6 MySQL5.7](https://qiita.com/witchcraze/items/53d14c2fec378b1a9190)
    - [CentOS6 MariaDB10.1](https://qiita.com/witchcraze/items/e1531604529609be43ee)
    - [CentOS6 MariaDB10.2](https://qiita.com/witchcraze/items/152290a85890d5c1ec0c)
- CentOS7
    - [CentOS7 MySQL5.5](https://qiita.com/witchcraze/items/456d547470066dd7c7da)
    - [CentOS7 MySQL5.6](https://qiita.com/witchcraze/items/388ad3810ac15551c55c)
    - [CentOS7 MySQL5.7](https://qiita.com/witchcraze/items/ad67208889844c3f0fad)
    - [CentOS7 MySQL8.0](https://qiita.com/witchcraze/items/96f246d899a46e4bd5f3)
    - [CentOS7 MariaDB10.0](https://qiita.com/witchcraze/items/1735cafa5ba8a2e363d8)
    - [CentOS7 MariaDB10.1](https://qiita.com/witchcraze/items/024147c6e5ac3815d5c8)
    - [CentOS7 MariaDB10.2](https://qiita.com/witchcraze/items/d8e850e4f6da8007b9e7)
    - [CentOS7 MariaDB10.3](https://qiita.com/witchcraze/items/89a244b21b10a39ee756)
    - [CentOS7 MariaDB10.5](https://qiita.com/witchcraze/items/05e31cab3f636abdda8b)

## Application Stream(AppStream)

- CentOS8
    - [MySQL8.0](https://qiita.com/witchcraze/items/75de3c1f1d1cbea177d9)
    - [MariaDB10.3](https://qiita.com/witchcraze/items/087486c796b3a3a83006)
- AlmaLinux OS 9
    - [MySQL8.0](https://qiita.com/witchcraze/items/4e18656d57656a3d6867)
    - [MariaDB10.5](https://qiita.com/witchcraze/items/1d1ab30904d113664609)

## Official Repository

- CentOS
    - [CentOS6 MySQL5.6](https://qiita.com/witchcraze/items/efecc9fb25181dfca1c5)
    - [CentOS6 MySQL5.7](https://qiita.com/witchcraze/items/0d41ed8040b494a55c18)
    - [CentOS6 MySQL8.0](https://qiita.com/witchcraze/items/4a84722e3c1fd4e67bdd)
    - [CentOS7 MySQL8.0](https://qiita.com/witchcraze/items/7cf218370b14842dfb9d)
- Debian
- Ubuntu