Centos7.3 detailed tutorial on installing mysql5.7.18

Source: Internet
Author: User

Centos7.3 detailed tutorial on installing mysql5.7.18

1. view the Linux release version

[Root @ typecodes ~] # Cat/etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

2. Download the MySQL official Yum Repository centos7.3 detailed tutorial on installing mysql5.7.18

Get Yum Repository from the mysql official (http://dev.mysql.com/downloads/repo/yum/) according to the Linux release (both CentOS and Fedora are in red hat.

[Root @ typecodes ~] # Wget-I http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm

-- 18:36:02 -- http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm

Resolving dev.mysql.com (dev.mysql.com)... 137.254.60.11

Connecting to dev.mysql.com (dev.mysql.com) | 137.254.60.11 |: 80... connected.

HTTP request sent, awaiting response... 302 Found

Location: http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm [following]

-- 18:36:04 -- http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm

Resolving repo.mysql.com (repo.mysql.com)... 104.104244.25

Connecting to repo.mysql.com (repo.mysql.com) | 104.1000004.25 |: 80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 8984 (8.8 K) [application/x-redhat-package-manager]

Saving to: 'mysql57-community-release-el7-7.noarch.rpm'

100% [============================================== ========================================================== ========================================================== ======>]

18:36:07 (68.4 MB/s)-'mysql57-community-release-el7-7.noarch.rpm 'saved [8984/8984]

3. Install MySQL's Yum Repository

After the Yum Repository of MySQL is installed, every execution of yum update checks whether MySQL is updated.

[Root @ typecodes ~] # Yum-y install mysql57-community-release-el7-7.noarch.rpm

Loaded plugins: axelget, fastestmirror, langpacks

Examining mysql57-community-release-el7-7.noarch.rpm: mysql57-community-release-el7-7.noarch

Marking mysql57-community-release-el7-7.noarch.rpm to be installed

Resolving Dependencies

--> Running transaction check

---> Package mysql57-community-release.noarch 0: el7-7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

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

Package Arch Version Repository Size

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

Installing:

Mysql57-community-release noarch el7-7/mysql57-community-release-el7-7.noarc

Transaction Summary

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

Install 1 Package

Total size: 7.8 k

Installed size: 7.8 k

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing: mysql57-community-release-el7-7.noarch 1/1

Verifying: mysql57-community-release-el7-7.noarch 1/1

Installed:

Mysql57-community-release.noarch 0: el7-7

Complete!

3. Install the MySQL database server version

[Root @ typecodes ~] # Yum-y install mysql-community-server

Loaded plugins: axelget, fastestmirror, langpacks

No metadata available for base

No metadata available for epel

No metadata available for extras

Repomd. xml | 2.5 kB 00:00:00

Update mysql-connectors-community metadata successfully

Repomd. xml | 2.5 kB 00:00:00

Update mysql-tools-community metadata successfully

Repomd. xml | 2.5 kB 00:00:00

Update mysql57-community metadata successfully

No metadata available for updates

Mysql-connectors-community | 2.5 kB 00:00:00

Mysql-tools-community | 2.5 kB 00:00:00

Mysql57-community | 2.5 kB 00:00:00

(1/3): mysql-tools-community/x86_64/primary_db | 24 kB 00:00:01

(2/3): mysql57-community/x86_64/primary_db | 28 kB 00:00:01

(3/3): mysql-connectors-community/x86_64/primary_db | 8.6 kB 00:00:02

Loading mirror speeds from cached hostfile

* Base: mirrors.aliyun.com

* Epel: mirrors.neusoft.edu.cn

* Extras: mirrors.163.com

* Updates: mirrors.163.com

Resolving Dependencies

--> Running transaction check

---> Package mysql-community-server.x86_64. 7.10-1. el7 will be installed

--> Processing Dependency: mysql-community-common (x86-64) = 5.7.10-1. el7 for package: mysql-community-server-5.7.10-1.el7.x86_64

--> Processing Dependency: mysql-community-client (x86-64) = 5.7.10-1. el7 for package: mysql-community-server-5.7.10-1.el7.x86_64

--> Running transaction check

---> Package mysql-community-client.x86_64. 7.10-1. el7 will be installed

--> Processing Dependency: mysql-community-libs (x86-64) = 5.7.10-1. el7 for package: mysql-community-client-5.7.10-1.el7.x86_64

---> Package mysql-community-common.x86_64. 7.10-1. el7 will be installed

--> Running transaction check

---> Package mariadb-libs.x86_64. 5.44-2. el7.centos will be obsoleted

--> Processing Dependency: libmysqlclient. so.18 () (64bit) for package: 2: postfix-2.10.1-6.el7.x86_64

--> Processing Dependency: libmysqlclient. so.18 (libmysqlclient_18) (64bit) for package: 2: postfix-2.10.1-6.el7.x86_64

---> Package mysql-community-libs.x86_64. 7.10-1. el7 will be obsoleting

--> Running transaction check

---> Package mysql-community-libs-compat.x86_64. 7.10-1. el7 will be obsoleting

--> Finished Dependency Resolution

Dependencies Resolved

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

Package Arch Version Repository Size

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

Installing:

Mysql-community-libs x86_64 5.7.10-1. el7 mysql57-community 2.2 M

Replacing mariadb-libs.x86_64. 5.44-2. el7.centos

Mysql-community-libs-compat x86_64 5.7.10-1. el7 mysql57-community 2.0 M

Replacing mariadb-libs.x86_64. 5.44-2. el7.centos

Mysql-community-server x86_64 5.7.10-1. el7 mysql57-community 142 M

Installing for dependencies:

Mysql-community-client x86_64 5.7.10-1. el7 mysql57-community 24 M

Mysql-community-common x86_64 5.7.10-1. el7 mysql57-community 269 k

Transaction Summary

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

Install 3 Packages (+ 2 Dependent packages)

Total download size: 171 M

Downloading packages:

Mysql-community-server-5.7.10-1.el7.x86_64.rpm | 142 MB 00:03:42

Mysql-community-libs-compat-5.7.10-1.el7.x86_64.rpm | 2.0 MB 00:00:03

Mysql-community-libs-5.7.10-1.el7.x86_64.rpm | 2.2 MB 00:00:05

Mysql-community-client-5.7.10-1.el7.x86_64.rpm | 24 MB 00:00:41

Warning:/var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.10-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY00 ETA

Public key for mysql-community-common-5.7.10-1.el7.x86_64.rpm is not installed

Mysql-community-common-5.7.10-1.el7.x86_64.rpm | 269 kB 00:00:01

Retrieving key from file: // etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Importing GPG key 0x5072E1F5:

Userid: "MySQL Release Engineering"

Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5

Package: mysql57-community-release-el7-7.noarch (@/mysql57-community-release-el7-7.noarch)

From:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing: mysql-community-common-5.7.10-1.el7.x86_64 1/6

Installing: mysql-community-libs-5.7.10-1.el7.x86_64 2/6

Installing: mysql-community-client-5.7.10-1.el7.x86_64 3/6

Installing: mysql-community-server-5.7.10-1.el7.x86_64 4/6

Installing: mysql-community-libs-compat-5.7.10-1.el7.x86_64 5/6

Erasing: 1: mariadb-libs-5.5.44-2.el7.centos.x86_64 6/6

Verifying: mysql-community-server-5.7.10-1.el7.x86_64 1/6

Verifying: mysql-community-libs-compat-5.7.10-1.el7.x86_64 2/6

Verifying: mysql-community-common-5.7.10-1.el7.x86_64 3/6

Verifying: mysql-community-libs-5.7.10-1.el7.x86_64 4/6

Verifying: mysql-community-client-5.7.10-1.el7.x86_64 5/6

Verifying: 1: mariadb-libs-5.5.44-2.el7.centos.x86_64 6/6

Installed:

Mysql-community-libs.x86_64 0: 5. 7.10-1. el7 mysql-community-libs-compat.x86_64 0: 5. 7.10-1. el7 mysql-community-server.x86_64 0: 5. 7.10-1. el7

Dependency Installed:

Mysql-community-client.x86_64 0: 5. 7.10-1. el7 mysql-community-common.x86_64 0: 5. 7.10-1. el7

Replaced:

Mariadb-libs.x86_64. 5.44-2. el7.centos

Complete!

[Root @ typecodes ~] # Clear

Last:

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.