$ sudo yum install mysql-community-server
/**
* Install MySQL server (CentOS 8)
*/
sudo dnf install mysql-server
/**
* Now MySQL was installed, but not running.
* Start server
*/
sudo systemctl start mysqld.service
/**
* If you need, you can enable MySQL starting when start WSL
*/
sudo systemctl enable mysqld
/**
* Use the security script
*/
sudo mysql_secure_installation
/**
* Can check your MySQL parameters
*/
mysqladmin -u root -p version
/**
* Can run commands in MySQL after login
*/
mysql -u root -p
// Result:
// mysql> [Here you can run your queries, inserts, etc.]
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm