TL;DR
- use vagrant box bento/centos-7.9
- yum install MySQL 8.4
prepare for install
uninstall mariadb
yum remove mariadb-libs -y
add repository of mysql
yum localinstall -y https://dev.mysql.com/get/mysql84-community-release-el7-1.noarch.rpm
install
yum 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