installing MySQL in CentOS

Source: Internet
Author: User

Reference Document Http://www.linuxidc.com/Linux/2016-09/135288.htm

Installation Environment: CentOS7 64-bit

Installation version: mysql5.7 version

Installing MySQL with Yum Online installation can also be installed offline, here is only a relatively simple online installation method.

https://dev.mysql.com/downloads/repo/yum/

Pull to the bottom there are download options:

Get the download path to download:

wget https://repo.mysql.com//  mysql57-community-release-el7-11.noarch.rpm

Install MySQL source

Yum Install mysql57-community-release-el7--noarch.rpm

Check MySQL source

Yum grep " mysql.*-community.* "

Adjust the default version number of the MySQL Source: (Modify enabled under the corresponding version) 1 Enable 0 not enabled

vim/etc/Yum. Repos.d/mysql-community.repo

Installing the MySQL Service

Yum Install Mysql-community-server

Start the MySQL service

Systemctl Start mysqld

View service Status

Systemctl Status Mysqld

Installing MySQL in CentOS

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.