Amazon Linux 2 環境において amazon-linux-extras リポジトリから MariaDB 10.5 へバージョンアップする手順。
1. バージョンアップ前の状況
1 2 |
$ mysql --version mysql Ver 15.1 Distrib 5.5.68-MariaDB, for Linux (x86_64) using readline 5.1 |
1 2 3 4 |
$ yum list installed | grep -i mariadb mariadb.x86_64 1:5.5.68-1.amzn2 @amzn2-core mariadb-libs.x86_64 1:5.5.68-1.amzn2 @amzn2-core mariadb-server.x86_64 1:5.5.68-1.amzn2 @amzn2-core |
1 2 3 4 5 6 7 8 9 10 |
$ sudo systemctl status mariadb.service ● mariadb.service - MariaDB database server Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled) Active: active (running) since 水 2021-09-08 11:01:46 JST; 6 months 8 days ago Main PID: 2343 (mysqld_safe) CGroup: /system.slice/mariadb.service ├─2343 /bin/sh /usr/bin/mysqld_safe --basedir=/usr └─2596 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql... Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. |
2. MariaDB のサービス停止
1 |
$ sudo systemctl stop mariadb.service |
3. MariaDB 10.5 の Exras Library からのインストール
1 2 3 4 5 |
$ sudo amazon-linux-extras enable mariadb10.5 $ sudo yum clean metadata $ sudo yum install mariadb |
4. MariaDB のサービス起動
1 |
$ sudo systemctl start mariadb |
5. バージョンアップ後の確認
1 2 |
$ mysql --version mysql Ver 15.1 Distrib 10.5.10-MariaDB, for Linux (x86_64) using EditLine wrapper |
1 2 |
$ mysqld --version mysqld Ver 10.5.10-MariaDB for Linux on x86_64 (MariaDB Server) |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
$ yum list installed | grep -i mariadb Judy.x86_64 1.0.5-8.amzn2.0.1 @amzn2extra-mariadb10.5 libsphinxclient.x86_64 2.2.11-5.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-backup.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-common.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-config.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-connect-engine.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-cracklib-password-check.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-devel.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-errmsg.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-gssapi-server.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-libs.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-oqgraph-engine.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-pam.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-rocksdb-engine.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-server.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-server-utils.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mariadb-sphinx-engine.x86_64 3:10.5.10-2.amzn2.0.1 @amzn2extra-mariadb10.5 mytop.noarch 1.7-20.b737f60.amzn2 @amzn2extra-mariadb10.5 sphinx.x86_64 2.2.11-5.amzn2.0.1 @amzn2extra-mariadb10.5 |