Both MySQL and Mysql-devel were installed successfully, but the installation Mysql-server failed with the following:
[email protected] ~]# yum install mysql-serverloaded plugins:fastestmirrorloading mirror speeds from cached Hostfile * b ase:mirrors.sina.cn * extras:mirrors.sina.cn * updates:mirrors.sina.cnNo package mysql-server available. Error:nothing to do
Find out that the CentOS 7 version removed the MySQL database software from the default program list and replaced it with MARIADB.
Workaround:
1. Download the MySQL repo source
$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
2. Install the MYSQL-COMMUNITY-RELEASE-EL7-5.NOARCH.RPM package
$ RPM-IVH mysql-community-release-el7-5.noarch.rpm
After installing this package, you will get two MySQL yum repo Source:/etc/yum.repos.d/mysql-community.repo,/etc/yum.repos.d/mysql-community-source.repo.
3. Install MySQL
$ yum Install Mysql-server
Centos7 installing MySQL However mysql-server install failed problem