Install MySQL 8.0 on CentOS 8
1. Install MySQL 8.0
sudo dnf install @mysql:8.02. Enable MySQL 8.0 Service
sudo systemctl enable --now mysql3. Harden MySQL 8.0 Server
mysql_secure_installationEnable the password policy and specify the required password strength.
Create a password for the root account.
Remove anonymous user access.
Disable remote access to the root account
Remove the test database.