CentOS Linux release 7.5.1804 install MySQL

Source: Internet
Author: User
Tags gpg

[Email protected] ~]# Rpm-qa | grep Yum

Yum-plugin-fastestmirror-1.1.31-45.el7.noarch

Yum-metadata-parser-1.1.4-10.el7.x86_64

Yum-langpacks-0.4.2-7.el7.noarch

Yum-utils-1.1.31-45.el7.noarch

Yum-3.4.3-158.el7.centos.noarch

[Email protected] ~]# cd/etc/yum.repos.d/

[[email protected] yum.repos.d]# ls

Centos-base.repo Centos-debuginfo.repo Centos-media.repo Centos-vault.repo

Centos-cr.repo Centos-fasttrack.repo Centos-sources.repo

[Email protected] yum.repos.d]# VI Centos-base.repo

[Email protected] yum.repos.d]# RM-RF *.repo

[[email protected] yum.repos.d]# ls

[Email protected] yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

--2018-06-06 10:25:58--Http://mirrors.163.com/.help/CentOS7-Base-163.repo

Parsing host mirrors.163.com (mirrors.163.com) ... 59.111.0.251

Connecting mirrors.163.com (mirrors.163.com) |59.111.0.251|:80 ... is connected.

An HTTP request has been made and is waiting for a response ... OK

Length: 1572 (1.5K) [Application/octet-stream]

Saving to: "Centos7-base-163.repo"


100%[======================================>] 1,572--.-k/s spents 0s


2018-06-06 10:25:58 (138 MB/s)-Saved "Centos7-base-163.repo" [1572/1572])


[[email protected] yum.repos.d]# ls

Centos7-base-163.repo

[email protected] yum.repos.d]# Yum Clean all

Loaded plugins: Fastestmirror, LangPacks

Cleaning up software Source: base Extras Updates

Cleaning up everything

Maybe Want:rm-rf/var/cache/yum, to also free up space taken by orphaned D ata from disabled or removed rep Os

[email protected] yum.repos.d]# CP Centos7-base-163.repo Centos7-base-163.repo.bak

[Email protected] yum.repos.d]# VI Centos7-base-163.repo

[Email protected] yum.repos.d]# cat/etc/centos-release

CentOS Linux release 7.5.1804 (Core)

[Email protected] yum.repos.d]# yum install mysql-server

Loaded plugins: Fastestmirror, LangPacks

Determining fastest Mirrors

Base | 3.6 KB 00:00

Extras | 3.4 KB 00:00

Updates | 3.4 KB 00:00

(quarter): Base/x86_64/group_gz | 166 KB 00:00

(2/4): updates/x86_64/primary_db | 2.0 MB 00:01

(3/4): base/x86_64/primary_db | 5.9 MB 00:04

(4/4): extras/x86_64/primary_db | 147 KB 00:10

No packages available mysql-server.

Error: No processing required

[Email protected] yum.repos.d]# yum-y install wget

Loaded plugins: Fastestmirror, LangPacks

Loading mirror speeds from cached hostfile

Package wget-1.14-15.el7_4.1.x86_64 is installed and is the latest version

No processing required

[Email protected] yum.repos.d]# Cd/home

[[email protected] home]# ls

[Email protected] home]# mkdir Linshi

C[[email protected] home]# CD linshi/

[Email protected] linshi]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

--2018-06-06 10:38:42--http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

Parsing host repo.mysql.com (repo.mysql.com) ... 23.195.78.58

Connecting repo.mysql.com (repo.mysql.com) |23.195.78.58|:80 ... is connected.

An HTTP request has been made and is waiting for a response ... OK

Length: 6140 (6.0K) [Application/x-redhat-package-manager]

Saving to: "mysql-community-release-el7-5.noarch.rpm"


100%[======================================>] 6,140--.-k/s spents 0s


2018-06-06 10:38:42 (+ MB/s)-saved "mysql-community-release-el7-5.noarch.rp m" [6140/6140])


[Email protected] linshi]# RPM-IVH mysql-community-release-el7-5.noarch.rpm

In preparation ... ################################# [100%]

Upgrading/installing ...

1:mysql-community-release-el7-5 ################################# [100%]

[Email protected] linshi]# ls/etc/yum.repos.d/

Centos7-base-163.repo Mysql-community.repo

Centos7-base-163.repo.bak Mysql-community-source.repo

[Email protected] linshi]# yum install mysql-server

Loaded plugins: Fastestmirror, LangPacks

Loading mirror speeds from cached hostfile

mysql-connectors-community | 2.5 KB 00:00

mysql-tools-community | 2.5 KB 00:00

mysql56-community | 2.5 KB 00:00

(1/3): mysql-connectors-community/x86_64/primary_db | KB 00:00

(2/3): mysql-tools-community/x86_64/primary_db | KB 00:00

(3/3): mysql56-community/x86_64/primary_db | 191 KB 00:01

Resolving dependencies

--Checking transactions

---> Package mysql-community-server.x86_64.0.5.6.40-2.el7 will be installed

--and processing dependency Mysql-community-common (x86-64) = 5.6.40-2.el7, which is required by package m ysql-community-server-5.6.40-2.el7.x86_64 To

--The dependency mysql-community-client (x86-64) >= 5.6.10 is being processed and it is required by the package mysql-community-server-5.6.40-2.el7.x86_64

--and is processing dependencies Perl (DBI), which is required by package mysql-community-server-5.6.40-2.el7.x 86_64

--Checking transactions

---> Package mysql-community-client.x86_64.0.5.6.40-2.el7 will be installed

--The dependency mysql-community-libs (x86-64) >= 5.6.10 is being processed and it is required by the package Mysql-co mmunity-client-5.6.40-2.el7.x86_64

---> Package mysql-community-common.x86_64.0.5.6.40-2.el7 will be installed

---> Package perl-dbi.x86_64.0.1.627-4.el7 will be installed

--The dependency is being processed by Perl (RPC::P lserver) >= 0.2001, which is perl-dbi-1.627-4 by the package. El7.x86_64 need

--The dependency is being processed by Perl (RPC::P lclient) >= 0.2000, which is perl-dbi-1.627-4 by the package. El7.x86_64 need

--Checking transactions

---> Package mariadb-libs.x86_64.1.5.5.56-2.el7 will be replaced

---> Package mysql-community-libs.x86_64.0.5.6.40-2.el7 will be discarded

---> Package perl-plrpc.noarch.0.0.2020-14.el7 will be installed

and is working on Dependencies Perl (Net::D Aemon) >= 0.13, which is perl-plrpc-0.2020-14 by the package. El7.noarch need

and is working on Dependencies Perl (Net::D aemon::test), which is required by package Perl-plrpc-0.2020-14.el 7.noarch

and is working with Dependencies Perl (Net::D aemon::log), which is perl-plrpc-0.2020-14.el7 by the package. Noarch needs

--Checking transactions

---> Package perl-net-daemon.noarch.0.0.48-5.el7 will be installed

--Resolve dependency completion


Dependency resolution


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

Package schema version Source size

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

Installing:

Mysql-community-libs x86_64 5.6.40-2.el7 mysql56-community 2.0 M

Replace mariadb-libs.x86_64 1:5.5.56-2.EL7

Mysql-community-server x86_64 5.6.40-2.el7 mysql56-community M

To install for dependency:

Mysql-community-client x86_64 5.6.40-2.el7 mysql56-community M

Mysql-community-common x86_64 5.6.40-2.el7 mysql56-community 257 k

PERL-DBI x86_64 1.627-4.EL7 Base 802 k

Perl-net-daemon Noarch 0.48-5.el7 base Wuyi K

Perl-plrpc Noarch 0.2020-14.el7 Base K


Transaction summary

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

Install 2 packages (+5 dependent packages)


Total Downloads: + M

Is this OK [y/d/n]: Y

Downloading packages:

Warning:/var/cache/yum/x86_64/7/mysql56-community/packages/mysql-community-common-5.6.40-2.el7.x86_64.rpm: Head V3 DSA/SH A1 Signature, Key ID 5072e1f5:nokey

MYSQL-COMMUNITY-COMMON-5.6.40-2.EL7.X86_64.RPM public key is not installed

(1/7): mysql-community-common-5.6.40-2.el7.x86_64.rpm | 257 KB 00:01

(2/7): mysql-community-libs-5.6.40-2.el7.x86_64.rpm | 2.0 MB 00:00

Warning:/var/cache/yum/x86_64/7/base/packages/perl-net-daemon-0.48-5.el7.noarch.rp m: Head V3 rsa/sha256 Signature, key ID F4a80eb5:nokey

PERL-NET-DAEMON-0.48-5.EL7.NOARCH.RPM public key is not installed

(3/7): perl-net-daemon-0.48-5.el7.noarch.rpm | Wuyi 00:00

(4/7): perl-plrpc-0.2020-14.el7.noarch.rpm | KB 00:00

(5/7): perl-dbi-1.627-4.el7.x86_64.rpm | 802 KB 00:00

(6/7): mysql-community-client-5.6.40-2.el7.x86_64.rpm | MB 00:08

(7/7): mysql-community-server-5.6.40-2.el7.x86_64.rpm | MB 00:19

--------------------------------------------------------------------------------

Total 3.7 Mb/s | 00:21 MB

Retrieving Keys from http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

Import GPG key 0XF4A80EB5:

User id: "CentOS-7 Key (CentOS 7 official Signing Key) <[email protected] >"

Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5

From: http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

Do you want to continue? [Y/n]:y

Retrieving Keys from File:/etc/pki/rpm-gpg/rpm-gpg-key-mysql

Import GPG key 0x5072e1f5:

User id: "MySQL Release Engineering <[email protected]>"

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

Package: Mysql-community-release-el7-5.noarch (installed)

From: File:/etc/pki/rpm-gpg/rpm-gpg-key-mysql

Do you want to continue? [Y/n]:y

Running transaction Check

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPM database has been modified by non-Yum programs.

Installing: mysql-community-common-5.6.40-2.el7.x86_64 1/8

Installing: mysql-community-libs-5.6.40-2.el7.x86_64 2/8

Installing: mysql-community-client-5.6.40-2.el7.x86_64 3/8

Installing: Perl-net-daemon-0.48-5.el7.noarch 4/8

Installing: Perl-plrpc-0.2020-14.el7.noarch 5/8

Installing: perl-dbi-1.627-4.el7.x86_64 6/8

Installing: mysql-community-server-5.6.40-2.el7.x86_64 7/8

Deleting: 1:mariadb-libs-5.5.56-2.el7.x86_64 8/8

Verified in: Perl-net-daemon-0.48-5.el7.noarch 1/8

Verified in: mysql-community-server-5.6.40-2.el7.x86_64 2/8

Verified in: Perl-plrpc-0.2020-14.el7.noarch 3/8

Verified in: mysql-community-client-5.6.40-2.el7.x86_64 4/8

Verified in: mysql-community-libs-5.6.40-2.el7.x86_64 5/8

Verified in: mysql-community-common-5.6.40-2.el7.x86_64 6/8

Verified in: perl-dbi-1.627-4.el7.x86_64 7/8

Verified in: 1:mariadb-libs-5.5.56-2.el7.x86_64 8/8


has been installed:

mysql-community-libs.x86_64 0:5.6.40-2.el7 mysql-community-server.x86_64 0:5.6.40-2.el7


To be installed as a dependency:

Mysql-community-client.x86_64 0:5.6.40-2.EL7

Mysql-community-common.x86_64 0:5.6.40-2.EL7

Perl-dbi.x86_64 0:1.627-4.EL7

Perl-net-daemon.noarch 0:0.48-5.EL7

Perl-plrpc.noarch 0:0.2020-14.EL7


Alternative:

Mariadb-libs.x86_64 1:5.5.56-2.EL7


Complete!


[Email protected] linshi]# systemctl start mysqld

[Email protected] linshi]# systemctl status mysqld

[Email protected] linshi]# systemctl enable mysqld





CentOS Linux release 7.5.1804 install 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.