0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

MariaDB を 10.3 から 10.5 にする

Last updated at Posted at 2022-07-15

バックアップ取得

# mysqldump --all-databases -uroot -p > mysql_all_databases_YYMMDD.sql

サービス停止

# systemctl stop mariadb

現在のプログラムを削除

# yum remove mariadb

レポジトリファイルの書き換え

# vim /etc/yum.repos.d/mariadb.repo

10.3 を 10.5 に編集

# MariaDB 10.5 CentOS repository list
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

10.5 の依存パッケージをインストール

# yum install socat

サーバプログラムのインストール

# yum install mariadb mariadb-server
# systemctl enable mariadb
# systemctl start mariadb
# mysql_upgrade -uroot -p --force

確認

# mariadb --version
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?