centos6 rpm安装mysql 5.7

前端之家收集整理的这篇文章主要介绍了centos6 rpm安装mysql 5.7前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装过程中需要进行系统补包操作

  1 [[email protected] ~]# rpm -qa |grep MysqL
  2 MysqL-libs-5.1.73-5.el6_6.x86_64
  3 [[email protected] ~]# rpm -e MysqL-libs
  4 error: Failed dependencies:
  5         libMysqLclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64
  6         libMysqLclient.so.16(libMysqLclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64
  7         MysqL-libs is needed by (installed) postfix-2:2.6.6-6.el6_5.x86_64
  8 [[email protected] ~]# rpm -e --nodeps MysqL-libs
  9 [[email protected] ~]# rpm -qa |grep MysqL       
 10 [[email protected] ~]# rpm -ivh MysqL-community-common-5.7.24-1.el6.x86_64.rpm MysqL-community-client-5.7.24-1.el6.x86_64.rpm MysqL-community-libs-
 11 MysqL-community-libs-5.7.24-1.el6.x86_64.rpm
 12 MysqL-community-libs-compat-5.7.24-1.el6.x86_64.rpm
 13 [[email protected] ~]# rpm -ivh MysqL-community-common-5.7.24-1.el6.x86_64.rpm MysqL-community-client-5.7.24-1.el6.x86_64.rpm MysqL-community-libs-
 14 MysqL-community-libs-5.7.24-1.el6.x86_64.rpm
 15 MysqL-community-libs-compat-5.7.24-1.el6.x86_64.rpm
 16 [[email protected] ~]# rpm -ivh MysqL-community-common-5.7.24-1.el6.x86_64.rpm MysqL-community-client-5.7.24-1.el6.x86_64.rpm MysqL-community-libs-5.7.24-1.el6.x86_64.rpm MysqL-community-server-5.7.24-1.el6.x86_64.rpm MysqL-community-libs-compat-5.7.24-1.el6.x86_64.rpm 
 17 warning: MysqL-community-common-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
 18 error: Failed dependencies:
 19         libaio.so.1()(64bit) is needed by MysqL-community-server-5.7.24-1.el6.x86_64
 20         libaio.so.1(LIBAIO_0.1)(64bit) is needed by MysqL-community-server-5.7.24-1.el6.x86_64
 21         libaio.so.1(LIBAIO_0.4)(64bit) is needed by MysqL-community-server-5.7.24-1.el6.x86_64
 22         libnuma.so.1()(64bit) is needed by MysqL-community-server-5.7.24-1.el6.x86_64
 23         libnuma.so.1(libnuma_1.1)(64bit) is needed by MysqL-community-server-5.7.24-1.el6.x86_64
 24         libnuma.so.1(libnuma_1.2)(64bit) is needed by MysqL-community-server-5.7.24-1.el6.x86_64
 25 [[email protected] ~]# yum install libaio
 26 Loaded plugins: fastestmirror
 27 Setting up Install Process
 28 Loading mirror speeds from cached hostfile
 29 Resolving Dependencies
 30 --> Running transaction check
 31 ---> Package libaio.x86_64 0:0.3.107-10.el6 will be installed
 32 --> Finished Dependency Resolution
 33 
 34 Dependencies Resolved
 35 
 36 ==============================================================================================================================================================
 37  Package                             Arch                                Version                                      Repository                         Size
 38 ==============================================================================================================================================================
 39 Installing:
 40  libaio                              x86_64                              0.3.107-10.el6                               base                               21 k
 41 
 42 Transaction Summary
 43 ==============================================================================================================================================================
 44 Install       1 Package(s)
 45 
 46 Total download size: 21 k
 47 Installed size: 34 k
 48 Is this ok [y/N]: y
 49 Downloading Packages:
 50 Running rpm_check_debug
 51 Running Transaction Test
 52 Transaction Test Succeeded
 53 Running Transaction
 54 Warning: RPMDB altered outside of yum.
 55 ** Found 3 pre-existing rpmdb problem(s),yum check output follows:
 56 2:postfix-2.6.6-6.el6_5.x86_64 has missing requires of libMysqLclient.so.16()(64bit)
 57 2:postfix-2.6.6-6.el6_5.x86_64 has missing requires of libMysqLclient.so.16(libMysqLclient_16)(64bit)
 58 2:postfix-2.6.6-6.el6_5.x86_64 has missing requires of MysqL-libs
 59   Installing : libaio-0.3.107-10.el6.x86_64                                                                                                               1/1 
 60   Verifying  : libaio-0.3.107-10.el6.x86_64                                                                                                               1/1 
 61 
 62 Installed:
 63   libaio.x86_64 0:0.3.107-10.el6 
 64 [[email protected] ~]# yum install numactl
 65 Loaded plugins: fastestmirror
 66 Setting up Install Process
 67 Loading mirror speeds from cached hostfile
 68 Resolving Dependencies
 69 --> Running transaction check
 70 ---> Package numactl.x86_64 0:2.0.9-2.el6 will be installed
 71 --> Finished Dependency Resolution
 72 
 73 Dependencies Resolved
 74 
 75 ===========================================================================================
 76  Package              Arch                Version                  Repository         Size
 77 ===========================================================================================
 78 Installing:
 79  numactl              x86_64              2.0.9-2.el6              base               74 k
 80 
 81 Transaction Summary
 82 ===========================================================================================
 83 Install       1 Package(s)
 84 
 85 Total download size: 74 k
 86 Installed size: 171 k
 87 Is this ok [y/N]: y
 88 Downloading Packages:
 89 Running rpm_check_debug
 90 Running Transaction Test
 91 Transaction Test Succeeded
 92 Running Transaction
 93   Installing : numactl-2.0.9-2.el6.x86_64                                              1/1 
 94   Verifying  : numactl-2.0.9-2.el6.x86_64                                              1/1 
 95 
 96 Installed:
 97   numactl.x86_64 0:2.0.9-2.el6                                                             
 98 
 99 Complete!
100                                                                                                                              
101 [[email protected] ~]# rpm -ivh MysqL-community-common-5.7.24-1.el6.x86_64.rpm MysqL-community-client-5.7.24-1.el6.x86_64.rpm MysqL-community-libs-5.7.24-1.el6.x86_64.rpm MysqL-community-server-5.7.24-1.el6.x86_64.rpm MysqL-community-libs-compat-5.7.24-1.el6.x86_64.rpm 
102 warning: MysqL-community-common-5.7.24-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
103 Preparing...                ########################################### [100%]
104    1:MysqL-community-common ########################################### [ 20%]
105    2:MysqL-community-libs   ########################################### [ 40%]
106    3:MysqL-community-client ########################################### [ 60%]
107    4:MysqL-community-server ########################################### [ 80%]
108    5:MysqL-community-libs-co########################################### [100%]

猜你在找的CentOS相关文章