redhat8 install mysql8
1.install mysql 8.0
yum install @mysql:8.0 -y
2.Start MySQL8.0 service and enable startup
systemctl start mysqld
systemctl enable mysqld
3.Turn off the redhat8 firewall
systemctl stop firewalld,
systemctl disable firewalld
4.Open client port 3306
5. Secure initialization, set Root password and perform security settings
mysql_secure_installation
6.Log in to the database to check if the installation is successful
mysql -u root -p