・MariaDB のインストール

[root@alma]# dnf -y install mariadb-server mariadb mariadb-devel

・MariaDB の設定

[root@alma]# vi /etc/my.cnf.d/mariadb-server.cnf
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#
以下追記 ※文字化け防止
[client]
default-character-set = utf8mb4

# this is read by the standalone daemon and embedded servers
[server]

# this is only for the mysqld standalone daemon
# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mysqld/mariadb according to the
# instructions in http://fedoraproject.org/wiki/Systemd
[mysqld]
以下追記 ※文字化け防止
character-set-server = utf8mb4
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mariadb/mariadb.log
pid-file=/run/mariadb/mariadb.pid

≪ 以下省略 ≫

・MariaDB の起動

[root@alma]# systemctl start mariadb

・自動起動設定

[root@alma]# systemctl enable mariadb

・自動起動設定の確認

[root@alma]# systemctl is-enabled mariadb
enabled※ enabled になっていればOK