Install MySQL 8.0 on CentOS 8

MySQL Logo
1. Install MySQL 8.0

sudo dnf install @mysql:8.0

2. Enable MySQL 8.0 Service

sudo systemctl enable --now mysql

3. Harden MySQL 8.0 Server

mysql_secure_installation

Enable 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.

Comments