Install MySQL 5.7 On CentOS

Source: Internet
Author: User
Tags yum repolist

Install MySQL 5.7 On CentOS

1. Download mysql57-community-release-el6-8.noarch.rpm from mysql Official Website

2. Install the rpm downloaded in step 1

rpm -ivh mysql57-community-release-el6-8.noarch.rpm

3. After the installation is complete, we found that two new files are added under the/etc/yum. repos. d directory. The second file records the mysql source information.

1 mysql-community.repo2 mysql-community-source.repo

4. view available mysql installation sources

 yum repolist enabled | grep mysql 1 mysql-connectors-community  MySQL Connectors Community                       212 mysql-tools-community       MySQL Tools Community                            243 mysql57-community           MySQL 5.7 Community Server                       56

5. Use yum to install mysql (automatically solves the dependency problem and installs other related packages) (if you need to save the downloaded package, modify/etc/yum. conf and

Change keepcache = 0 to keepcache = 1)

 
yum install mysql-community-server

Installing:

Mysql-community-libs i686 5.7.13-1. el6 mysql57-community 2.0 M

Replacing mysql-libs.i686 5.1.73-3. el6_5

Mysql-community-libs-compat i686 5.7.13-1. el6 mysql57-community 1.6 M

Replacing mysql-libs.i686 5.1.73-3. el6_5

Mysql-community-server i686 5.7.13-1. el6 mysql57-community 140 M

Installing for dependencies:

Mysql-community-client i686 5.7.13-1. el6 mysql57-community 22 M

Mysql-community-common i686 5.7.13-1. el6 mysql57-community 327 k

Updating for dependencies:

Postfix i686. 6.6-6. el6_7.1 base 2.0 M

 

Transaction Summary

========================================================== ========================================================== ====================

Install 5 Package (s)

Upgrade 1 Package (s)

6. Check the mysql service status after the installation is complete.
 sudo service mysqld status  mysqld (pid  26422) 

Related Article

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.