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