as a result of :
CentOS7 with MariaDB instead of MySQL,MariaDB and MySQL It's also Kaiyuan's database , You can use yum -y install mariadb-server mariadb Command to install
Solution :
If you have to install MySQL, You must first add mysql Community repo By entering the command :sudo rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm, Finally use something like installation MySQL The usual way to install mysql: yum install mysql mysql-server mysql-libs mysql-server