yum安装mysql

一.   yum install mysql

[root@localhost /]# yum install mysql
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.sina.cn
 * updates: mirrors.pubyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mariadb.x86_64.1.5.5.47-1.el7_2 将被 安装
--> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.47-1.el7_2,它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 perl(Sys::Hostname),它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 perl(IPC::Open3),它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 perl(Getopt::Long),它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 perl(File::Temp),它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 perl(Fcntl),它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 perl(Exporter),它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在处理依赖关系 /usr/bin/perl,它被软件包 1:mariadb-5.5.47-1.el7_2.x86_64 需要
--> 正在检查事务
---> 软件包 mariadb-libs.x86_64.1.5.5.40-2.el7_0 将被 升级
---> 软件包 mariadb-libs.x86_64.1.5.5.47-1.el7_2 将被 更新
---> 软件包 perl.x86_64.4.5.16.3-286.el7 将被 安装
--> 正在处理依赖关系 perl-libs = 4:5.16.3-286.el7,它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Socket) >= 1.3,它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Scalar::Util) >= 1.10,它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl-macros,它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl-libs,它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(threads::shared),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(threads),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(constant),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Time::Local),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Time::HiRes),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Storable),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Socket),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Scalar::Util),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Pod::Simple::XHTML),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Pod::Simple::Search),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Filter::Util::Call),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(File::Spec::Unix),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(File::Spec::Functions),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(File::Spec),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(File::Path),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Cwd),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 perl(Carp),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
--> 正在处理依赖关系 libperl.so()(64bit),它被软件包 4:perl-5.16.3-286.el7.x86_64 需要
---> 软件包 perl-Exporter.noarch.0.5.68-3.el7 将被 安装
---> 软件包 perl-File-Temp.noarch.0.0.23.01-3.el7 将被 安装
---> 软件包 perl-Getopt-Long.noarch.0.2.40-2.el7 将被 安装
--> 正在处理依赖关系 perl(Pod::Usage) >= 1.14,它被软件包 perl-Getopt-Long-2.40-2.el7.noarch 需要
--> 正在处理依赖关系 perl(Text::ParseWords),它被软件包 perl-Getopt-Long-2.40-2.el7.noarch 需要
--> 正在检查事务
---> 软件包 perl-Carp.noarch.0.1.26-244.el7 将被 安装
---> 软件包 perl-File-Path.noarch.0.2.09-2.el7 将被 安装
---> 软件包 perl-Filter.x86_64.0.1.49-3.el7 将被 安装
---> 软件包 perl-PathTools.x86_64.0.3.40-5.el7 将被 安装
---> 软件包 perl-Pod-Simple.noarch.1.3.28-4.el7 将被 安装
--> 正在处理依赖关系 perl(Pod::Escapes) >= 1.04,它被软件包 1:perl-Pod-Simple-3.28-4.el7.noarch 需要
--> 正在处理依赖关系 perl(Encode),它被软件包 1:perl-Pod-Simple-3.28-4.el7.noarch 需要
---> 软件包 perl-Pod-Usage.noarch.0.1.63-3.el7 将被 安装
--> 正在处理依赖关系 perl(Pod::Text) >= 3.15,它被软件包 perl-Pod-Usage-1.63-3.el7.noarch 需要
--> 正在处理依赖关系 perl-Pod-Perldoc,它被软件包 perl-Pod-Usage-1.63-3.el7.noarch 需要
---> 软件包 perl-Scalar-List-Utils.x86_64.0.1.27-248.el7 将被 安装
---> 软件包 perl-Socket.x86_64.0.2.010-3.el7 将被 安装
---> 软件包 perl-Storable.x86_64.0.2.45-3.el7 将被 安装
---> 软件包 perl-Text-ParseWords.noarch.0.3.29-4.el7 将被 安装
---> 软件包 perl-Time-HiRes.x86_64.4.1.9725-3.el7 将被 安装
---> 软件包 perl-Time-Local.noarch.0.1.2300-2.el7 将被 安装
---> 软件包 perl-constant.noarch.0.1.27-2.el7 将被 安装
---> 软件包 perl-libs.x86_64.4.5.16.3-286.el7 将被 安装
---> 软件包 perl-macros.x86_64.4.5.16.3-286.el7 将被 安装
---> 软件包 perl-threads.x86_64.0.1.87-4.el7 将被 安装
---> 软件包 perl-threads-shared.x86_64.0.1.43-6.el7 将被 安装
--> 正在检查事务
---> 软件包 perl-Encode.x86_64.0.2.51-7.el7 将被 安装
---> 软件包 perl-Pod-Escapes.noarch.1.1.04-286.el7 将被 安装
---> 软件包 perl-Pod-Perldoc.noarch.0.3.20-4.el7 将被 安装
--> 正在处理依赖关系 perl(parent),它被软件包 perl-Pod-Perldoc-3.20-4.el7.noarch 需要
--> 正在处理依赖关系 perl(HTTP::Tiny),它被软件包 perl-Pod-Perldoc-3.20-4.el7.noarch 需要
---> 软件包 perl-podlators.noarch.0.2.5.1-3.el7 将被 安装
--> 正在检查事务
---> 软件包 perl-HTTP-Tiny.noarch.0.0.033-3.el7 将被 安装
---> 软件包 perl-parent.noarch.1.0.225-244.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

==============================================================================================================================================================================================================================================================================
 Package                                                                    架构                                                       版本                                                                 源                                                           大小
==============================================================================================================================================================================================================================================================================
正在安装:
 mariadb                                                                    x86_64                                                     1:5.5.47-1.el7_2                                                     updates                                                     8.9 M
为依赖而安装:
 perl                                                                       x86_64                                                     4:5.16.3-286.el7                                                     base                                                        8.0 M
 perl-Carp                                                                  noarch                                                     1.26-244.el7                                                         base                                                         19 k
 perl-Encode                                                                x86_64                                                     2.51-7.el7                                                           base                                                        1.5 M
 perl-Exporter                                                              noarch                                                     5.68-3.el7                                                           base                                                         28 k
 perl-File-Path                                                             noarch                                                     2.09-2.el7                                                           base                                                         26 k
 perl-File-Temp                                                             noarch                                                     0.23.01-3.el7                                                        base                                                         56 k
 perl-Filter                                                                x86_64                                                     1.49-3.el7                                                           base                                                         76 k
 perl-Getopt-Long                                                           noarch                                                     2.40-2.el7                                                           base                                                         56 k
 perl-HTTP-Tiny                                                             noarch                                                     0.033-3.el7                                                          base                                                         38 k
 perl-PathTools                                                             x86_64                                                     3.40-5.el7                                                           base                                                         82 k
 perl-Pod-Escapes                                                           noarch                                                     1:1.04-286.el7                                                       base                                                         50 k
 perl-Pod-Perldoc                                                           noarch                                                     3.20-4.el7                                                           base                                                         87 k
 perl-Pod-Simple                                                            noarch                                                     1:3.28-4.el7                                                         base                                                        216 k
 perl-Pod-Usage                                                             noarch                                                     1.63-3.el7                                                           base                                                         27 k
 perl-Scalar-List-Utils                                                     x86_64                                                     1.27-248.el7                                                         base                                                         36 k
 perl-Socket                                                                x86_64                                                     2.010-3.el7                                                          base                                                         49 k
 perl-Storable                                                              x86_64                                                     2.45-3.el7                                                           base                                                         77 k
 perl-Text-ParseWords                                                       noarch                                                     3.29-4.el7                                                           base                                                         14 k
 perl-Time-HiRes                                                            x86_64                                                     4:1.9725-3.el7                                                       base                                                         45 k
 perl-Time-Local                                                            noarch                                                     1.2300-2.el7                                                         base                                                         24 k
 perl-constant                                                              noarch                                                     1.27-2.el7                                                           base                                                         19 k
 perl-libs                                                                  x86_64                                                     4:5.16.3-286.el7                                                     base                                                        687 k
 perl-macros                                                                x86_64                                                     4:5.16.3-286.el7                                                     base                                                         43 k
 perl-parent                                                                noarch                                                     1:0.225-244.el7                                                      base                                                         12 k
 perl-podlators                                                             noarch                                                     2.5.1-3.el7                                                          base                                                        112 k
 perl-threads                                                               x86_64                                                     1.87-4.el7                                                           base                                                         49 k
 perl-threads-shared                                                        x86_64                                                     1.43-6.el7                                                           base                                                         39 k
为依赖而更新:
 mariadb-libs                                                               x86_64                                                     1:5.5.47-1.el7_2                                                     updates                                                     755 k

事务概要
==============================================================================================================================================================================================================================================================================
安装  1 软件包 (+27 依赖软件包)
升级           (  1 依赖软件包)

总下载量:21 M
Is this ok [y/d/N]: 

 输入y后

Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/29): perl-Carp-1.26-244.el7.noarch.rpm                                                                                                                                                                                                              |  19 kB  00:00:00     
(2/29): mariadb-libs-5.5.47-1.el7_2.x86_64.rpm                                                                                                                                                                                                         | 755 kB  00:00:00     
(3/29): perl-Encode-2.51-7.el7.x86_64.rpm                                                                                                                                                                                                              | 1.5 MB  00:00:00     
(4/29): perl-Exporter-5.68-3.el7.noarch.rpm                                                                                                                                                                                                            |  28 kB  00:00:00     
(5/29): perl-File-Path-2.09-2.el7.noarch.rpm                                                                                                                                                                                                           |  26 kB  00:00:00     
(6/29): perl-File-Temp-0.23.01-3.el7.noarch.rpm                                                                                                                                                                                                        |  56 kB  00:00:00     
(7/29): perl-Filter-1.49-3.el7.x86_64.rpm                                                                                                                                                                                                              |  76 kB  00:00:00     
(8/29): perl-Getopt-Long-2.40-2.el7.noarch.rpm                                                                                                                                                                                                         |  56 kB  00:00:00     
(9/29): perl-HTTP-Tiny-0.033-3.el7.noarch.rpm                                                                                                                                                                                                          |  38 kB  00:00:00     
(10/29): perl-PathTools-3.40-5.el7.x86_64.rpm                                                                                                                                                                                                          |  82 kB  00:00:00     
(11/29): perl-Pod-Escapes-1.04-286.el7.noarch.rpm                                                                                                                                                                                                      |  50 kB  00:00:00     
(12/29): perl-Pod-Perldoc-3.20-4.el7.noarch.rpm                                                                                                                                                                                                        |  87 kB  00:00:00     
(13/29): perl-Pod-Simple-3.28-4.el7.noarch.rpm                                                                                                                                                                                                         | 216 kB  00:00:00     
(14/29): perl-Pod-Usage-1.63-3.el7.noarch.rpm                                                                                                                                                                                                          |  27 kB  00:00:00     
(15/29): perl-Scalar-List-Utils-1.27-248.el7.x86_64.rpm                                                                                                                                                                                                |  36 kB  00:00:00     
(16/29): perl-Socket-2.010-3.el7.x86_64.rpm                                                                                                                                                                                                            |  49 kB  00:00:00     
(17/29): perl-Storable-2.45-3.el7.x86_64.rpm                                                                                                                                                                                                           |  77 kB  00:00:00     
(18/29): perl-Text-ParseWords-3.29-4.el7.noarch.rpm                                                                                                                                                                                                    |  14 kB  00:00:00     
(19/29): perl-Time-HiRes-1.9725-3.el7.x86_64.rpm                                                                                                                                                                                                       |  45 kB  00:00:00     
(20/29): perl-Time-Local-1.2300-2.el7.noarch.rpm                                                                                                                                                                                                       |  24 kB  00:00:00     
(21/29): perl-constant-1.27-2.el7.noarch.rpm                                                                                                                                                                                                           |  19 kB  00:00:00     
(22/29): perl-libs-5.16.3-286.el7.x86_64.rpm                                                                                                                                                                                                           | 687 kB  00:00:00     
(23/29): perl-macros-5.16.3-286.el7.x86_64.rpm                                                                                                                                                                                                         |  43 kB  00:00:00     
(24/29): perl-parent-0.225-244.el7.noarch.rpm                                                                                                                                                                                                          |  12 kB  00:00:00     
(25/29): perl-podlators-2.5.1-3.el7.noarch.rpm                                                                                                                                                                                                         | 112 kB  00:00:00     
(26/29): perl-threads-1.87-4.el7.x86_64.rpm                                                                                                                                                                                                            |  49 kB  00:00:00     
(27/29): perl-threads-shared-1.43-6.el7.x86_64.rpm                                                                                                                                                                                                     |  39 kB  00:00:00     
(28/29): perl-5.16.3-286.el7.x86_64.rpm                                                                                                                                                                                                                | 8.0 MB  00:00:01     
(29/29): mariadb-5.5.47-1.el7_2.x86_64.rpm                                                                                                                                                                                                             | 8.9 MB  00:00:02     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                                                                                                          8.9 MB/s |  21 MB  00:00:02     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : 1:perl-parent-0.225-244.el7.noarch                                                                                                                                                                                                                       1/30 
  正在安装    : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                                                                                                                                                                        2/30 
  正在安装    : perl-podlators-2.5.1-3.el7.noarch                                                                                                                                                                                                                        3/30 
  正在安装    : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                                                                                                                                                                       4/30 
  正在安装    : 1:perl-Pod-Escapes-1.04-286.el7.noarch                                                                                                                                                                                                                   5/30 
  正在安装    : perl-Text-ParseWords-3.29-4.el7.noarch                                                                                                                                                                                                                   6/30 
  正在安装    : perl-Encode-2.51-7.el7.x86_64                                                                                                                                                                                                                            7/30 
  正在安装    : perl-Pod-Usage-1.63-3.el7.noarch                                                                                                                                                                                                                         8/30 
  正在安装    : 4:perl-libs-5.16.3-286.el7.x86_64                                                                                                                                                                                                                        9/30 
  正在安装    : 4:perl-macros-5.16.3-286.el7.x86_64                                                                                                                                                                                                                     10/30 
  正在安装    : perl-Storable-2.45-3.el7.x86_64                                                                                                                                                                                                                         11/30 
  正在安装    : perl-Exporter-5.68-3.el7.noarch                                                                                                                                                                                                                         12/30 
  正在安装    : perl-constant-1.27-2.el7.noarch                                                                                                                                                                                                                         13/30 
  正在安装    : perl-Time-Local-1.2300-2.el7.noarch                                                                                                                                                                                                                     14/30 
  正在安装    : perl-Socket-2.010-3.el7.x86_64                                                                                                                                                                                                                          15/30 
  正在安装    : perl-Carp-1.26-244.el7.noarch                                                                                                                                                                                                                           16/30 
  正在安装    : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                                                                                                                                                                   17/30 
  正在安装    : perl-PathTools-3.40-5.el7.x86_64                                                                                                                                                                                                                        18/30 
  正在安装    : perl-Scalar-List-Utils-1.27-248.el7.x86_64                                                                                                                                                                                                              19/30 
  正在安装    : perl-File-Temp-0.23.01-3.el7.noarch                                                                                                                                                                                                                     20/30 
  正在安装    : perl-File-Path-2.09-2.el7.noarch                                                                                                                                                                                                                        21/30 
  正在安装    : perl-threads-shared-1.43-6.el7.x86_64                                                                                                                                                                                                                   22/30 
  正在安装    : perl-threads-1.87-4.el7.x86_64                                                                                                                                                                                                                          23/30 
  正在安装    : perl-Filter-1.49-3.el7.x86_64                                                                                                                                                                                                                           24/30 
  正在安装    : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                                                                                                                                                                     25/30 
  正在安装    : perl-Getopt-Long-2.40-2.el7.noarch                                                                                                                                                                                                                      26/30 
  正在安装    : 4:perl-5.16.3-286.el7.x86_64                                                                                                                                                                                                                            27/30 
  正在更新    : 1:mariadb-libs-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                    28/30 
  正在安装    : 1:mariadb-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                         29/30 
  清理        : 1:mariadb-libs-5.5.40-2.el7_0.x86_64                                                                                                                                                                                                                    30/30 
  验证中      : perl-HTTP-Tiny-0.033-3.el7.noarch                                                                                                                                                                                                                        1/30 
  验证中      : perl-threads-shared-1.43-6.el7.x86_64                                                                                                                                                                                                                    2/30 
  验证中      : perl-Storable-2.45-3.el7.x86_64                                                                                                                                                                                                                          3/30 
  验证中      : perl-Exporter-5.68-3.el7.noarch                                                                                                                                                                                                                          4/30 
  验证中      : perl-constant-1.27-2.el7.noarch                                                                                                                                                                                                                          5/30 
  验证中      : perl-PathTools-3.40-5.el7.x86_64                                                                                                                                                                                                                         6/30 
  验证中      : 4:perl-libs-5.16.3-286.el7.x86_64                                                                                                                                                                                                                        7/30 
  验证中      : 4:perl-macros-5.16.3-286.el7.x86_64                                                                                                                                                                                                                      8/30 
  验证中      : 1:mariadb-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                          9/30 
  验证中      : 1:perl-parent-0.225-244.el7.noarch                                                                                                                                                                                                                      10/30 
  验证中      : 4:perl-5.16.3-286.el7.x86_64                                                                                                                                                                                                                            11/30 
  验证中      : perl-File-Temp-0.23.01-3.el7.noarch                                                                                                                                                                                                                     12/30 
  验证中      : 1:perl-Pod-Simple-3.28-4.el7.noarch                                                                                                                                                                                                                     13/30 
  验证中      : perl-Time-Local-1.2300-2.el7.noarch                                                                                                                                                                                                                     14/30 
  验证中      : perl-Pod-Perldoc-3.20-4.el7.noarch                                                                                                                                                                                                                      15/30 
  验证中      : perl-Socket-2.010-3.el7.x86_64                                                                                                                                                                                                                          16/30 
  验证中      : perl-Carp-1.26-244.el7.noarch                                                                                                                                                                                                                           17/30 
  验证中      : 4:perl-Time-HiRes-1.9725-3.el7.x86_64                                                                                                                                                                                                                   18/30 
  验证中      : perl-Scalar-List-Utils-1.27-248.el7.x86_64                                                                                                                                                                                                              19/30 
  验证中      : 1:perl-Pod-Escapes-1.04-286.el7.noarch                                                                                                                                                                                                                  20/30 
  验证中      : perl-Pod-Usage-1.63-3.el7.noarch                                                                                                                                                                                                                        21/30 
  验证中      : perl-Encode-2.51-7.el7.x86_64                                                                                                                                                                                                                           22/30 
  验证中      : perl-podlators-2.5.1-3.el7.noarch                                                                                                                                                                                                                       23/30 
  验证中      : perl-Getopt-Long-2.40-2.el7.noarch                                                                                                                                                                                                                      24/30 
  验证中      : perl-File-Path-2.09-2.el7.noarch                                                                                                                                                                                                                        25/30 
  验证中      : perl-threads-1.87-4.el7.x86_64                                                                                                                                                                                                                          26/30 
  验证中      : perl-Filter-1.49-3.el7.x86_64                                                                                                                                                                                                                           27/30 
  验证中      : perl-Text-ParseWords-3.29-4.el7.noarch                                                                                                                                                                                                                  28/30 
  验证中      : 1:mariadb-libs-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                    29/30 
  验证中      : 1:mariadb-libs-5.5.40-2.el7_0.x86_64                                                                                                                                                                                                                    30/30 

已安装:
  mariadb.x86_64 1:5.5.47-1.el7_2                                                                                                                                                                                                                                             

作为依赖被安装:
  perl.x86_64 4:5.16.3-286.el7               perl-Carp.noarch 0:1.26-244.el7            perl-Encode.x86_64 0:2.51-7.el7                   perl-Exporter.noarch 0:5.68-3.el7       perl-File-Path.noarch 0:2.09-2.el7          perl-File-Temp.noarch 0:0.23.01-3.el7        
  perl-Filter.x86_64 0:1.49-3.el7            perl-Getopt-Long.noarch 0:2.40-2.el7       perl-HTTP-Tiny.noarch 0:0.033-3.el7               perl-PathTools.x86_64 0:3.40-5.el7      perl-Pod-Escapes.noarch 1:1.04-286.el7      perl-Pod-Perldoc.noarch 0:3.20-4.el7         
  perl-Pod-Simple.noarch 1:3.28-4.el7        perl-Pod-Usage.noarch 0:1.63-3.el7         perl-Scalar-List-Utils.x86_64 0:1.27-248.el7      perl-Socket.x86_64 0:2.010-3.el7        perl-Storable.x86_64 0:2.45-3.el7           perl-Text-ParseWords.noarch 0:3.29-4.el7     
  perl-Time-HiRes.x86_64 4:1.9725-3.el7      perl-Time-Local.noarch 0:1.2300-2.el7      perl-constant.noarch 0:1.27-2.el7                 perl-libs.x86_64 4:5.16.3-286.el7       perl-macros.x86_64 4:5.16.3-286.el7         perl-parent.noarch 1:0.225-244.el7           
  perl-podlators.noarch 0:2.5.1-3.el7        perl-threads.x86_64 0:1.87-4.el7           perl-threads-shared.x86_64 0:1.43-6.el7          

作为依赖被升级:
  mariadb-libs.x86_64 1:5.5.47-1.el7_2                                                                                                                                                                                                                                        

完毕!
  

 

二.  yum install mysql-devel

[root@localhost /]# yum install mysql-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.sina.cn
 * updates: mirrors.pubyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mariadb-devel.x86_64.1.5.5.47-1.el7_2 将被 安装
--> 正在处理依赖关系 openssl-devel(x86-64),它被软件包 1:mariadb-devel-5.5.47-1.el7_2.x86_64 需要
--> 正在检查事务
---> 软件包 openssl-devel.x86_64.1.1.0.1e-51.el7_2.4 将被 安装
--> 正在处理依赖关系 openssl-libs(x86-64) = 1:1.0.1e-51.el7_2.4,它被软件包 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64 需要
--> 正在处理依赖关系 krb5-devel(x86-64),它被软件包 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64 需要
--> 正在检查事务
---> 软件包 krb5-devel.x86_64.0.1.13.2-12.el7_2 将被 安装
--> 正在处理依赖关系 krb5-libs(x86-64) = 1.13.2-12.el7_2,它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
--> 正在处理依赖关系 libverto-devel,它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
--> 正在处理依赖关系 libselinux-devel,它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
--> 正在处理依赖关系 libcom_err-devel,它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
--> 正在处理依赖关系 keyutils-libs-devel,它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
--> 正在处理依赖关系 libkdb5.so.8()(64bit),它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
--> 正在处理依赖关系 libkadm5srv_mit.so.9()(64bit),它被软件包 krb5-devel-1.13.2-12.el7_2.x86_64 需要
---> 软件包 openssl-libs.x86_64.1.1.0.1e-34.el7_0.6 将被 升级
--> 正在处理依赖关系 openssl-libs(x86-64) = 1:1.0.1e-34.el7_0.6,它被软件包 1:openssl-1.0.1e-34.el7_0.6.x86_64 需要
---> 软件包 openssl-libs.x86_64.1.1.0.1e-51.el7_2.4 将被 更新
--> 正在检查事务
---> 软件包 keyutils-libs-devel.x86_64.0.1.5.8-3.el7 将被 安装
---> 软件包 krb5-libs.x86_64.0.1.11.3-49.el7 将被 升级
---> 软件包 krb5-libs.x86_64.0.1.13.2-12.el7_2 将被 更新
---> 软件包 libcom_err-devel.x86_64.0.1.42.9-7.el7 将被 安装
--> 正在处理依赖关系 libcom_err(x86-64) = 1.42.9-7.el7,它被软件包 libcom_err-devel-1.42.9-7.el7.x86_64 需要
---> 软件包 libselinux-devel.x86_64.0.2.2.2-6.el7 将被 安装
--> 正在处理依赖关系 libsepol-devel >= 2.1.9-1,它被软件包 libselinux-devel-2.2.2-6.el7.x86_64 需要
--> 正在处理依赖关系 pkgconfig(libsepol),它被软件包 libselinux-devel-2.2.2-6.el7.x86_64 需要
---> 软件包 libverto-devel.x86_64.0.0.2.5-4.el7 将被 安装
---> 软件包 openssl.x86_64.1.1.0.1e-34.el7_0.6 将被 升级
---> 软件包 openssl.x86_64.1.1.0.1e-51.el7_2.4 将被 更新
--> 正在检查事务
---> 软件包 libcom_err.x86_64.0.1.42.9-4.el7 将被 升级
--> 正在处理依赖关系 libcom_err(x86-64) = 1.42.9-4.el7,它被软件包 e2fsprogs-1.42.9-4.el7.x86_64 需要
--> 正在处理依赖关系 libcom_err(x86-64) = 1.42.9-4.el7,它被软件包 e2fsprogs-libs-1.42.9-4.el7.x86_64 需要
--> 正在处理依赖关系 libcom_err(x86-64) = 1.42.9-4.el7,它被软件包 libss-1.42.9-4.el7.x86_64 需要
---> 软件包 libcom_err.x86_64.0.1.42.9-7.el7 将被 更新
---> 软件包 libsepol-devel.x86_64.0.2.1.9-3.el7 将被 安装
--> 正在检查事务
---> 软件包 e2fsprogs.x86_64.0.1.42.9-4.el7 将被 升级
---> 软件包 e2fsprogs.x86_64.0.1.42.9-7.el7 将被 更新
---> 软件包 e2fsprogs-libs.x86_64.0.1.42.9-4.el7 将被 升级
---> 软件包 e2fsprogs-libs.x86_64.0.1.42.9-7.el7 将被 更新
---> 软件包 libss.x86_64.0.1.42.9-4.el7 将被 升级
---> 软件包 libss.x86_64.0.1.42.9-7.el7 将被 更新
--> 解决依赖关系完成

依赖关系解决

==============================================================================================================================================================================================================================================================================
 Package                                                                 架构                                                       版本                                                                    源                                                           大小
==============================================================================================================================================================================================================================================================================
正在安装:
 mariadb-devel                                                           x86_64                                                     1:5.5.47-1.el7_2                                                        updates                                                     749 k
为依赖而安装:
 keyutils-libs-devel                                                     x86_64                                                     1.5.8-3.el7                                                             base                                                         37 k
 krb5-devel                                                              x86_64                                                     1.13.2-12.el7_2                                                         updates                                                     649 k
 libcom_err-devel                                                        x86_64                                                     1.42.9-7.el7                                                            base                                                         30 k
 libselinux-devel                                                        x86_64                                                     2.2.2-6.el7                                                             base                                                        174 k
 libsepol-devel                                                          x86_64                                                     2.1.9-3.el7                                                             base                                                         71 k
 libverto-devel                                                          x86_64                                                     0.2.5-4.el7                                                             base                                                         12 k
 openssl-devel                                                           x86_64                                                     1:1.0.1e-51.el7_2.4                                                     updates                                                     1.2 M
为依赖而更新:
 e2fsprogs                                                               x86_64                                                     1.42.9-7.el7                                                            base                                                        697 k
 e2fsprogs-libs                                                          x86_64                                                     1.42.9-7.el7                                                            base                                                        165 k
 krb5-libs                                                               x86_64                                                     1.13.2-12.el7_2                                                         updates                                                     843 k
 libcom_err                                                              x86_64                                                     1.42.9-7.el7                                                            base                                                         40 k
 libss                                                                   x86_64                                                     1.42.9-7.el7                                                            base                                                         45 k
 openssl                                                                 x86_64                                                     1:1.0.1e-51.el7_2.4                                                     updates                                                     711 k
 openssl-libs                                                            x86_64                                                     1:1.0.1e-51.el7_2.4                                                     updates                                                     951 k

事务概要
==============================================================================================================================================================================================================================================================================
安装  1 软件包 (+7 依赖软件包)
升级           ( 7 依赖软件包)

总下载量:6.2 M
Is this ok [y/d/N]: 

 输入y

Is this ok [y/d/N]: y
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/15): e2fsprogs-1.42.9-7.el7.x86_64.rpm                                                                                                                                                                                                              | 697 kB  00:00:00     
(2/15): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm                                                                                                                                                                                                     |  37 kB  00:00:00     
(3/15): libcom_err-1.42.9-7.el7.x86_64.rpm                                                                                                                                                                                                             |  40 kB  00:00:00     
(4/15): libcom_err-devel-1.42.9-7.el7.x86_64.rpm                                                                                                                                                                                                       |  30 kB  00:00:00     
(5/15): libselinux-devel-2.2.2-6.el7.x86_64.rpm                                                                                                                                                                                                        | 174 kB  00:00:00     
(6/15): libsepol-devel-2.1.9-3.el7.x86_64.rpm                                                                                                                                                                                                          |  71 kB  00:00:00     
(7/15): libss-1.42.9-7.el7.x86_64.rpm                                                                                                                                                                                                                  |  45 kB  00:00:00     
(8/15): libverto-devel-0.2.5-4.el7.x86_64.rpm                                                                                                                                                                                                          |  12 kB  00:00:00     
(9/15): krb5-devel-1.13.2-12.el7_2.x86_64.rpm                                                                                                                                                                                                          | 649 kB  00:00:01     
(10/15): mariadb-devel-5.5.47-1.el7_2.x86_64.rpm                                                                                                                                                                                                       | 749 kB  00:00:00     
(11/15): openssl-1.0.1e-51.el7_2.4.x86_64.rpm                                                                                                                                                                                                          | 711 kB  00:00:00     
(12/15): openssl-devel-1.0.1e-51.el7_2.4.x86_64.rpm                                                                                                                                                                                                    | 1.2 MB  00:00:00     
(13/15): openssl-libs-1.0.1e-51.el7_2.4.x86_64.rpm                                                                                                                                                                                                     | 951 kB  00:00:00     
(14/15): e2fsprogs-libs-1.42.9-7.el7.x86_64.rpm                                                                                                                                                                                                        | 165 kB  00:00:05     
(15/15): krb5-libs-1.13.2-12.el7_2.x86_64.rpm                                                                                                                                                                                                          | 843 kB  00:00:05     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                                                                                                          918 kB/s | 6.2 MB  00:00:06     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在更新    : libcom_err-1.42.9-7.el7.x86_64                                                                                                                                                                                                                           1/22 
  正在更新    : 1:openssl-libs-1.0.1e-51.el7_2.4.x86_64                                                                                                                                                                                                                  2/22 
  正在更新    : krb5-libs-1.13.2-12.el7_2.x86_64                                                                                                                                                                                                                         3/22 
  正在更新    : e2fsprogs-libs-1.42.9-7.el7.x86_64                                                                                                                                                                                                                       4/22 
  正在更新    : libss-1.42.9-7.el7.x86_64                                                                                                                                                                                                                                5/22 
  正在安装    : libcom_err-devel-1.42.9-7.el7.x86_64                                                                                                                                                                                                                     6/22 
  正在安装    : libverto-devel-0.2.5-4.el7.x86_64                                                                                                                                                                                                                        7/22 
  正在安装    : libsepol-devel-2.1.9-3.el7.x86_64                                                                                                                                                                                                                        8/22 
  正在安装    : libselinux-devel-2.2.2-6.el7.x86_64                                                                                                                                                                                                                      9/22 
  正在安装    : keyutils-libs-devel-1.5.8-3.el7.x86_64                                                                                                                                                                                                                  10/22 
  正在安装    : krb5-devel-1.13.2-12.el7_2.x86_64                                                                                                                                                                                                                       11/22 
  正在安装    : 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64                                                                                                                                                                                                                12/22 
  正在安装    : 1:mariadb-devel-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                   13/22 
  正在更新    : e2fsprogs-1.42.9-7.el7.x86_64                                                                                                                                                                                                                           14/22 
  正在更新    : 1:openssl-1.0.1e-51.el7_2.4.x86_64                                                                                                                                                                                                                      15/22 
  清理        : e2fsprogs-1.42.9-4.el7.x86_64                                                                                                                                                                                                                           16/22 
  清理        : 1:openssl-1.0.1e-34.el7_0.6.x86_64                                                                                                                                                                                                                      17/22 
  清理        : 1:openssl-libs-1.0.1e-34.el7_0.6.x86_64                                                                                                                                                                                                                 18/22 
  清理        : krb5-libs-1.11.3-49.el7.x86_64                                                                                                                                                                                                                          19/22 
  清理        : e2fsprogs-libs-1.42.9-4.el7.x86_64                                                                                                                                                                                                                      20/22 
  清理        : libss-1.42.9-4.el7.x86_64                                                                                                                                                                                                                               21/22 
  清理        : libcom_err-1.42.9-4.el7.x86_64                                                                                                                                                                                                                          22/22 
  验证中      : keyutils-libs-devel-1.5.8-3.el7.x86_64                                                                                                                                                                                                                   1/22 
  验证中      : libsepol-devel-2.1.9-3.el7.x86_64                                                                                                                                                                                                                        2/22 
  验证中      : 1:openssl-1.0.1e-51.el7_2.4.x86_64                                                                                                                                                                                                                       3/22 
  验证中      : libverto-devel-0.2.5-4.el7.x86_64                                                                                                                                                                                                                        4/22 
  验证中      : 1:openssl-devel-1.0.1e-51.el7_2.4.x86_64                                                                                                                                                                                                                 5/22 
  验证中      : e2fsprogs-1.42.9-7.el7.x86_64                                                                                                                                                                                                                            6/22 
  验证中      : e2fsprogs-libs-1.42.9-7.el7.x86_64                                                                                                                                                                                                                       7/22 
  验证中      : libselinux-devel-2.2.2-6.el7.x86_64                                                                                                                                                                                                                      8/22 
  验证中      : 1:mariadb-devel-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                    9/22 
  验证中      : libcom_err-1.42.9-7.el7.x86_64                                                                                                                                                                                                                          10/22 
  验证中      : 1:openssl-libs-1.0.1e-51.el7_2.4.x86_64                                                                                                                                                                                                                 11/22 
  验证中      : krb5-devel-1.13.2-12.el7_2.x86_64                                                                                                                                                                                                                       12/22 
  验证中      : libss-1.42.9-7.el7.x86_64                                                                                                                                                                                                                               13/22 
  验证中      : krb5-libs-1.13.2-12.el7_2.x86_64                                                                                                                                                                                                                        14/22 
  验证中      : libcom_err-devel-1.42.9-7.el7.x86_64                                                                                                                                                                                                                    15/22 
  验证中      : e2fsprogs-libs-1.42.9-4.el7.x86_64                                                                                                                                                                                                                      16/22 
  验证中      : e2fsprogs-1.42.9-4.el7.x86_64                                                                                                                                                                                                                           17/22 
  验证中      : libss-1.42.9-4.el7.x86_64                                                                                                                                                                                                                               18/22 
  验证中      : 1:openssl-1.0.1e-34.el7_0.6.x86_64                                                                                                                                                                                                                      19/22 
  验证中      : libcom_err-1.42.9-4.el7.x86_64                                                                                                                                                                                                                          20/22 
  验证中      : krb5-libs-1.11.3-49.el7.x86_64                                                                                                                                                                                                                          21/22 
  验证中      : 1:openssl-libs-1.0.1e-34.el7_0.6.x86_64                                                                                                                                                                                                                 22/22 

已安装:
  mariadb-devel.x86_64 1:5.5.47-1.el7_2                                                                                                                                                                                                                                       

作为依赖被安装:
  keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.13.2-12.el7_2 libcom_err-devel.x86_64 0:1.42.9-7.el7 libselinux-devel.x86_64 0:2.2.2-6.el7 libsepol-devel.x86_64 0:2.1.9-3.el7 libverto-devel.x86_64 0:0.2.5-4.el7 openssl-devel.x86_64 1:1.0.1e-51.el7_2.4

作为依赖被升级:
  e2fsprogs.x86_64 0:1.42.9-7.el7     e2fsprogs-libs.x86_64 0:1.42.9-7.el7     krb5-libs.x86_64 0:1.13.2-12.el7_2     libcom_err.x86_64 0:1.42.9-7.el7     libss.x86_64 0:1.42.9-7.el7     openssl.x86_64 1:1.0.1e-51.el7_2.4     openssl-libs.x86_64 1:1.0.1e-51.el7_2.4    

完毕!

 

 

三 .

yum install mysql-server 在centos 7下没有可用的

解决办法:

官网直接安装

下载目录 /usr/local/

 1)下载rpm

wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm

  

地址改变 还有用不安全方式连接 

wget https://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm  --no-check-certificate

  

 

2)

rpm -ivh mysql-community-release-el7-5.noarch.rpm

 

 

3)

yum install mysql-community-server

  

 

[root@localhost local]# yum install mysql-community-server
已加载插件:fastestmirror
mysql-connectors-community                                                                                                                                                                                                                             | 2.5 kB  00:00:00     
mysql-tools-community                                                                                                                                                                                                                                  | 2.5 kB  00:00:00     
mysql56-community                                                                                                                                                                                                                                      | 2.5 kB  00:00:00     
(1/3): mysql-connectors-community/x86_64/primary_db                                                                                                                                                                                                    |  16 kB  00:00:01     
(2/3): mysql-tools-community/x86_64/primary_db                                                                                                                                                                                                         |  37 kB  00:00:06     
(3/3): mysql56-community/x86_64/primary_db                                                                                                                                                                                                             | 179 kB  00:00:07     
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.sina.cn
 * updates: mirrors.pubyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mysql-community-server.x86_64.0.5.6.38-2.el7 将被 安装
--> 正在处理依赖关系 mysql-community-common(x86-64) = 5.6.38-2.el7,它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-client(x86-64) >= 5.6.10,它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 perl(Data::Dumper),它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 perl(DBI),它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 net-tools,它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 libaio.so.1(LIBAIO_0.4)(64bit),它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 libaio.so.1(LIBAIO_0.1)(64bit),它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在处理依赖关系 libaio.so.1()(64bit),它被软件包 mysql-community-server-5.6.38-2.el7.x86_64 需要
--> 正在检查事务
---> 软件包 libaio.x86_64.0.0.3.109-13.el7 将被 安装
---> 软件包 mariadb.x86_64.1.5.5.47-1.el7_2 将被 取代
---> 软件包 mysql-community-client.x86_64.0.5.6.38-2.el7 将被 舍弃
--> 正在处理依赖关系 mysql-community-libs(x86-64) >= 5.6.10,它被软件包 mysql-community-client-5.6.38-2.el7.x86_64 需要
---> 软件包 mysql-community-common.x86_64.0.5.6.38-2.el7 将被 安装
---> 软件包 net-tools.x86_64.0.2.0-0.17.20131004git.el7 将被 安装
---> 软件包 perl-DBI.x86_64.0.1.627-4.el7 将被 安装
--> 正在处理依赖关系 perl(RPC::PlServer) >= 0.2001,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要
--> 正在处理依赖关系 perl(RPC::PlClient) >= 0.2000,它被软件包 perl-DBI-1.627-4.el7.x86_64 需要
---> 软件包 perl-Data-Dumper.x86_64.0.2.145-3.el7 将被 安装
--> 正在检查事务
---> 软件包 mariadb-libs.x86_64.1.5.5.47-1.el7_2 将被 取代
--> 正在处理依赖关系 mariadb-libs(x86-64) = 1:5.5.47-1.el7_2,它被软件包 1:mariadb-devel-5.5.47-1.el7_2.x86_64 需要
---> 软件包 mysql-community-libs.x86_64.0.5.6.38-2.el7 将被 舍弃
---> 软件包 perl-PlRPC.noarch.0.0.2020-14.el7 将被 安装
--> 正在处理依赖关系 perl(Net::Daemon) >= 0.13,它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在处理依赖关系 perl(Net::Daemon::Test),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在处理依赖关系 perl(Net::Daemon::Log),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在处理依赖关系 perl(Compress::Zlib),它被软件包 perl-PlRPC-0.2020-14.el7.noarch 需要
--> 正在检查事务
---> 软件包 mariadb-devel.x86_64.1.5.5.47-1.el7_2 将被 取代
---> 软件包 mysql-community-devel.x86_64.0.5.6.38-2.el7 将被 舍弃
---> 软件包 perl-IO-Compress.noarch.0.2.061-2.el7 将被 安装
--> 正在处理依赖关系 perl(Compress::Raw::Zlib) >= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要
--> 正在处理依赖关系 perl(Compress::Raw::Bzip2) >= 2.061,它被软件包 perl-IO-Compress-2.061-2.el7.noarch 需要
---> 软件包 perl-Net-Daemon.noarch.0.0.48-5.el7 将被 安装
--> 正在检查事务
---> 软件包 perl-Compress-Raw-Bzip2.x86_64.0.2.061-3.el7 将被 安装
---> 软件包 perl-Compress-Raw-Zlib.x86_64.1.2.061-4.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

==============================================================================================================================================================================================================================================================================
 Package                                                                架构                                                  版本                                                                     源                                                                大小
==============================================================================================================================================================================================================================================================================
正在安装:
 mysql-community-client                                                 x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                 19 M
      替换  mariadb.x86_64 1:5.5.47-1.el7_2
 mysql-community-devel                                                  x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                3.4 M
      替换  mariadb-devel.x86_64 1:5.5.47-1.el7_2
 mysql-community-libs                                                   x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                2.0 M
      替换  mariadb-libs.x86_64 1:5.5.47-1.el7_2
 mysql-community-server                                                 x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                 59 M
为依赖而安装:
 libaio                                                                 x86_64                                                0.3.109-13.el7                                                           base                                                              24 k
 mysql-community-common                                                 x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                257 k
 net-tools                                                              x86_64                                                2.0-0.17.20131004git.el7                                                 base                                                             304 k
 perl-Compress-Raw-Bzip2                                                x86_64                                                2.061-3.el7                                                              base                                                              32 k
 perl-Compress-Raw-Zlib                                                 x86_64                                                1:2.061-4.el7                                                            base                                                              57 k
 perl-DBI                                                               x86_64                                                1.627-4.el7                                                              base                                                             802 k
 perl-Data-Dumper                                                       x86_64                                                2.145-3.el7                                                              base                                                              47 k
 perl-IO-Compress                                                       noarch                                                2.061-2.el7                                                              base                                                             260 k
 perl-Net-Daemon                                                        noarch                                                0.48-5.el7                                                               base                                                              51 k
 perl-PlRPC                                                             noarch                                                0.2020-14.el7                                                            base                                                              36 k

事务概要
==============================================================================================================================================================================================================================================================================
安装  4 软件包 (+10 依赖软件包)

总下载量:86 M
Is this ok [y/d/N]: 

  

不小心终止然后继续执行的部分

已加载插件:fastestmirror
mysql-connectors-community                                                                                                                                                                                                                             | 2.5 kB  00:00:00     
mysql-tools-community                                                                                                                                                                                                                                  | 2.5 kB  00:00:00     
mysql56-community                                                                                                                                                                                                                                      | 2.5 kB  00:00:00     
Loading mirror speeds from cached hostfile
 * base: mirrors.pubyun.com
 * extras: mirrors.sina.cn
 * updates: mirrors.pubyun.com
正在解决依赖关系
--> 正在检查事务
--> 解决依赖关系完成

依赖关系解决

==============================================================================================================================================================================================================================================================================
 Package                                                                架构                                                  版本                                                                     源                                                                大小
==============================================================================================================================================================================================================================================================================
正在安装:
 mysql-community-client                                                 x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                 19 M
      替换  mariadb.x86_64 1:5.5.47-1.el7_2
 mysql-community-devel                                                  x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                3.4 M
      替换  mariadb-devel.x86_64 1:5.5.47-1.el7_2
 mysql-community-libs                                                   x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                2.0 M
      替换  mariadb-libs.x86_64 1:5.5.47-1.el7_2
 mysql-community-server                                                 x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                 59 M
为依赖而安装:
 libaio                                                                 x86_64                                                0.3.109-13.el7                                                           base                                                              24 k
 mysql-community-common                                                 x86_64                                                5.6.38-2.el7                                                             mysql56-community                                                257 k
 net-tools                                                              x86_64                                                2.0-0.17.20131004git.el7                                                 base                                                             304 k
 perl-Compress-Raw-Bzip2                                                x86_64                                                2.061-3.el7                                                              base                                                              32 k
 perl-Compress-Raw-Zlib                                                 x86_64                                                1:2.061-4.el7                                                            base                                                              57 k
 perl-DBI                                                               x86_64                                                1.627-4.el7                                                              base                                                             802 k
 perl-Data-Dumper                                                       x86_64                                                2.145-3.el7                                                              base                                                              47 k
 perl-IO-Compress                                                       noarch                                                2.061-2.el7                                                              base                                                             260 k
 perl-Net-Daemon                                                        noarch                                                0.48-5.el7                                                               base                                                              51 k
 perl-PlRPC                                                             noarch                                                0.2020-14.el7                                                            base                                                              36 k

事务概要
==============================================================================================================================================================================================================================================================================
安装  4 软件包 (+10 依赖软件包)

总下载量:86 M
Is this ok [y/d/N]: y
Downloading packages:
(1/14): libaio-0.3.109-13.el7.x86_64.rpm                                                                                                                                                                                                               |  24 kB  00:00:00     
warning: /var/cache/yum/x86_64/7/mysql56-community/packages/mysql-community-common-5.6.38-2.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY                                                                            ]  49 kB/s | 289 kB  00:29:37 ETA 
mysql-community-common-5.6.38-2.el7.x86_64.rpm 的公钥尚未安装
(2/14): mysql-community-common-5.6.38-2.el7.x86_64.rpm                                                                                                                                                                                                 | 257 kB  00:00:07     
(3/14): mysql-community-devel-5.6.38-2.el7.x86_64.rpm                                                                                                                                                                                                  | 3.4 MB  00:00:06     
(4/14): mysql-community-libs-5.6.38-2.el7.x86_64.rpm                                                                                                                                                                                                   | 2.0 MB  00:00:02     
(5/14): net-tools-2.0-0.17.20131004git.el7.x86_64.rpm                                                                                                                                                                                                  | 304 kB  00:00:00     
(6/14): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm                                                                                                                                                                                                  |  57 kB  00:00:00     
(7/14): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm                                                                                                                                                                                                 |  32 kB  00:00:00     
(8/14): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                                                                                                                                                                                        |  47 kB  00:00:00     
(9/14): perl-IO-Compress-2.061-2.el7.noarch.rpm                                                                                                                                                                                                        | 260 kB  00:00:00     
(10/14): perl-Net-Daemon-0.48-5.el7.noarch.rpm                                                                                                                                                                                                         |  51 kB  00:00:00     
(11/14): perl-PlRPC-0.2020-14.el7.noarch.rpm                                                                                                                                                                                                           |  36 kB  00:00:00     
(12/14): perl-DBI-1.627-4.el7.x86_64.rpm                                                                                                                                                                                                               | 802 kB  00:00:00     
(13/14): mysql-community-client-5.6.38-2.el7.x86_64.rpm                                                                                                                                                                                                |  19 MB  00:00:32     
(14/14): mysql-community-server-5.6.38-2.el7.x86_64.rpm                                                                                                                                                                                                |  59 MB  00:01:45     
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计                                                                                                                                                                                                                                          721 kB/s |  86 MB  00:02:02     
从 file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql 检索密钥
导入 GPG key 0x5072E1F5:
 用户ID     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 指纹       : a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
 软件包     : mysql-community-release-el7-5.noarch (installed)
 来自       : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql

 

输入Y

是否继续?[y/N]:y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
警告:RPM 数据库已被非 yum 程序修改。
  正在安装    : mysql-community-common-5.6.38-2.el7.x86_64                                                                                                                                                                                                               1/17 
  正在安装    : mysql-community-libs-5.6.38-2.el7.x86_64                                                                                                                                                                                                                 2/17 
  正在安装    : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                                                                                                                                      3/17 
  正在安装    : mysql-community-client-5.6.38-2.el7.x86_64                                                                                                                                                                                                               4/17 
  正在安装    : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                                                                                                                              5/17 
  正在安装    : net-tools-2.0-0.17.20131004git.el7.x86_64                                                                                                                                                                                                                6/17 
  正在安装    : libaio-0.3.109-13.el7.x86_64                                                                                                                                                                                                                             7/17 
  正在安装    : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                                                                                                                                        8/17 
  正在安装    : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                                                                                                                               9/17 
  正在安装    : perl-IO-Compress-2.061-2.el7.noarch                                                                                                                                                                                                                     10/17 
  正在安装    : perl-PlRPC-0.2020-14.el7.noarch                                                                                                                                                                                                                         11/17 
  正在安装    : perl-DBI-1.627-4.el7.x86_64                                                                                                                                                                                                                             12/17 
  正在安装    : mysql-community-server-5.6.38-2.el7.x86_64                                                                                                                                                                                                              13/17 
  正在安装    : mysql-community-devel-5.6.38-2.el7.x86_64                                                                                                                                                                                                               14/17 
  正在删除    : 1:mariadb-devel-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                   15/17 
  正在删除    : 1:mariadb-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                         16/17 
  正在删除    : 1:mariadb-libs-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                    17/17 
  验证中      : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                                                                                                                               1/17 
  验证中      : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                                                                                                                                        2/17 
  验证中      : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                                                                                                                                      3/17 
  验证中      : libaio-0.3.109-13.el7.x86_64                                                                                                                                                                                                                             4/17 
  验证中      : net-tools-2.0-0.17.20131004git.el7.x86_64                                                                                                                                                                                                                5/17 
  验证中      : mysql-community-client-5.6.38-2.el7.x86_64                                                                                                                                                                                                               6/17 
  验证中      : mysql-community-devel-5.6.38-2.el7.x86_64                                                                                                                                                                                                                7/17 
  验证中      : mysql-community-server-5.6.38-2.el7.x86_64                                                                                                                                                                                                               8/17 
  验证中      : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                                                                                                                              9/17 
  验证中      : mysql-community-common-5.6.38-2.el7.x86_64                                                                                                                                                                                                              10/17 
  验证中      : mysql-community-libs-5.6.38-2.el7.x86_64                                                                                                                                                                                                                11/17 
  验证中      : perl-DBI-1.627-4.el7.x86_64                                                                                                                                                                                                                             12/17 
  验证中      : perl-PlRPC-0.2020-14.el7.noarch                                                                                                                                                                                                                         13/17 
  验证中      : perl-IO-Compress-2.061-2.el7.noarch                                                                                                                                                                                                                     14/17 
  验证中      : 1:mariadb-devel-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                   15/17 
  验证中      : 1:mariadb-libs-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                    16/17 
  验证中      : 1:mariadb-5.5.47-1.el7_2.x86_64                                                                                                                                                                                                                         17/17 

已安装:
  mysql-community-client.x86_64 0:5.6.38-2.el7                        mysql-community-devel.x86_64 0:5.6.38-2.el7                        mysql-community-libs.x86_64 0:5.6.38-2.el7                        mysql-community-server.x86_64 0:5.6.38-2.el7                       

作为依赖被安装:
  libaio.x86_64 0:0.3.109-13.el7           mysql-community-common.x86_64 0:5.6.38-2.el7    net-tools.x86_64 0:2.0-0.17.20131004git.el7    perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7    perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7    perl-DBI.x86_64 0:1.627-4.el7   
  perl-Data-Dumper.x86_64 0:2.145-3.el7    perl-IO-Compress.noarch 0:2.061-2.el7           perl-Net-Daemon.noarch 0:0.48-5.el7            perl-PlRPC.noarch 0:0.2020-14.el7              

替代:
  mariadb.x86_64 1:5.5.47-1.el7_2                                                       mariadb-devel.x86_64 1:5.5.47-1.el7_2                                                       mariadb-libs.x86_64 1:5.5.47-1.el7_2                                                      

完毕!

  

 重启mysql服务

service mysqld restart  

 

service mysqld start 启动mysql服务

 

进入mysql  现在路径是/usr/local

mysql -u root -p 

空密码进入

[root@localhost local]# mysql -u root -p 
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.38 MySQL Community Server (GPL)

Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> 

 

 

查看数据库

show databases;

 

设置密码

 

 设置远程访问权限 

grant all privileges on *.* to root@'%' identified by '密码';

  

 

 

MySQL连接工具

 这时候用mysql 连接工具  SQLyog连接测试

 

 

 查看已安装的mysql版本

[root@localhost local]# rpm -qa | grep mysql
mysql-community-common-5.6.38-2.el7.x86_64
mysql-community-server-5.6.38-2.el7.x86_64
mysql-community-libs-5.6.38-2.el7.x86_64
mysql-community-devel-5.6.38-2.el7.x86_64
mysql-community-release-el7-5.noarch
mysql-community-client-5.6.38-2.el7.x86_64

  

 查询mysql 相关安装路径

[root@localhost local]# whereis mysql
mysql: /usr/bin/mysql /usr/lib64/mysql /usr/etc/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

  

 

 

  

 

posted @ 2017-12-04 23:56  星耀学园  阅读(519)  评论(0)    收藏  举报