Centos7 installing MySQL However mysql-server install failed problem

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.