Please find below the command to uninstall MySQL.
yum remove mysql mysql-server
After this execute the following commands in order to install MySQL in your virtual machine.
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
sudo yum install mysql-server
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo mysql_secure_installation
mysql -u root -p