Centos7 installing MySQL

Source: Internet
Author: User

1) Installation Dependent

Yum Search Libaio # Retrieving relevant information

Yum Install Libaio # Installation Dependency Package

2) Check if MySQL is installed

Yum List Installed | grep MySQL

If so, uninstall all first, the command is as follows:

Yum-y Remove mysql-libs.x86_64

3) Download MySQL yum Repository (yum Warehouse)

Address is http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

Perform the download

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

If you are prompted-bash:wget: command not found, first perform the Yum install wget installation wget

Installation

4) If no wget download the corresponding installation package

wget--->yum-y install wget

5) Add MySQL Yum Repository

Add MySQL Yum Repository to your system Repository list and execute

Yum Localinstall mysql-community-release-el7-5.noarch.rpm

6) Verify that the add is successful

Yum Repolist enabled | grep "Mysql.*-community.*"

7) Start yum install MySQL

Yum Install Mysql-community-server

8) Open

Systemctl Start mysqld

Systemctl Status mysqld View status

9) Verifying MySQL

Follow the steps to get the installation done.

Centos7 installing MySQL

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.