0
0

TL;DR

  • init vagrant box bento/rockylinux-8.10
  • dnf install MySQL 8.4

init rockylinux-8.10

mkdir rocky810
cd rocky810

vagrant init bento/rockylinux-8.10 --box-version 202406.05.0
vagrant up

参考: https://app.vagrantup.com/bento/boxes/rockylinux-8.10

firewalld

systemctl status firewall
systemctl is-enabled firewalld

status:inactiveの場合

systemctl start firewalld
systemctl enable firewalld
firewall-cmd --list-all

locale

このようなエラー対策

Failed to set locale, defaulting to C.UTF-8

こうする

dnf install langpacks-ja

参考:https://qiita.com/takizawafw6o2o/items/d6a15b5ae05d85ae1f41

prepare for install

unintall maria-db

確認

dnf list --installed | grep maria

インストール済みであれば削除しておく(今回は該当無しであった)

dnf remove mariadb-libs -y

add repository of mysql

dnf localinstall -y https://dev.mysql.com/get/mysql84-community-release-el8-1.noarch.rpm

参考: https://dev.mysql.com/downloads/repo/yum/

install

確認

repolist enabled | grep mysql.*-community
mysql-8.4-lts-community                 MySQL 8.4 LTS Community Server
mysql-connectors-community              MySQL Connectors Community
mysql-tools-8.4-lts-community           MySQL Tools 8.4 LTS Community

デフォルトバージョン(8.0)を無効にした上で8.4をインストールする

dnf module disable mysql
dnf install mysql-community-server

version check

mysqld --version

=> 8.4.0

set auto start mysqld

systemctl start mysqld.service
systemctl enable mysqld.service

set passwd

grep 'temporary password' /var/log/mysqld.log
mysql_secure_installation

thanks for

(一部参考にした) https://zenn.dev/ymasaoka/articles/install-mysql-8-centos-7

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