天天看點

centos7.4安裝mysql5.7

1.首先下載下傳mysql5.7安裝包。

[[email protected] opt]# wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
--2018-06-13 11:11:28--  https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
正在解析主機 dev.mysql.com (dev.mysql.com)... 137.254.60.11
正在連接配接 dev.mysql.com (dev.mysql.com)|137.254.60.11|:443... 已連接配接。
已發出 HTTP 請求,正在等待回應... 302 Found
位置:https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar [跟随至新的 URL]
--2018-06-13 11:11:29--  https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
正在解析主機 cdn.mysql.com (cdn.mysql.com)... 23.218.45.194
正在連接配接 cdn.mysql.com (cdn.mysql.com)|23.218.45.194|:443... 已連接配接。
已發出 HTTP 請求,正在等待回應... 200 OK
長度:598026240 (570M) [application/x-tar]
正在儲存至: “mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar”

100%[======================================>] 598,026,240 4.19MB/s 用時 2m 11s 

2018-06-13 11:13:41 (4.34 MB/s) - 已儲存 “mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar” [598026240/598026240])
           

2.然後解壓安裝包。

[[email protected] opt]# tar -xvf mysql-5.7.22-1.el7.x86_64.rpm-bundle.tar 
mysql-community-libs-5.7.22-1.el7.x86_64.rpm
mysql-community-libs-compat-5.7.22-1.el7.x86_64.rpm
mysql-community-embedded-5.7.22-1.el7.x86_64.rpm
mysql-community-test-5.7.22-1.el7.x86_64.rpm
mysql-community-server-5.7.22-1.el7.x86_64.rpm
mysql-community-client-5.7.22-1.el7.x86_64.rpm
mysql-community-server-minimal-5.7.22-1.el7.x86_64.rpm
mysql-community-devel-5.7.22-1.el7.x86_64.rpm
mysql-community-common-5.7.22-1.el7.x86_64.rpm
mysql-community-minimal-debuginfo-5.7.22-1.el7.x86_64.rpm
mysql-community-embedded-devel-5.7.22-1.el7.x86_64.rpm
mysql-community-embedded-compat-5.7.22-1.el7.x86_64.rpm
           

3.安裝mysql-community-server-5.7.22-1.el7.x86_64.rpm

[[email protected] opt]# yum localinstall mysql-community-server-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-server-5.7.22-1.el7.x86_64.rpm: mysql-community-server-5.7.22-1.el7.x86_64
mysql-community-server-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-server.x86_64.0.5.7.22-1.el7 将被 安裝
--> 正在處理依賴關系 mysql-community-common(x86-64) = 5.7.22-1.el7,它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
Loading mirror speeds from cached hostfile
--> 正在處理依賴關系 mysql-community-client(x86-64) >= 5.7.9,它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在處理依賴關系 libaio.so.1(LIBAIO_0.1)(64bit),它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在處理依賴關系 libaio.so.1(LIBAIO_0.4)(64bit),它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在處理依賴關系 libaio.so.1()(64bit),它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在檢查事務
---> 軟體包 libaio.x86_64.0.0.3.109-13.el7 将被 安裝
---> 軟體包 mysql-community-server.x86_64.0.5.7.22-1.el7 将被 安裝
--> 正在處理依賴關系 mysql-community-common(x86-64) = 5.7.22-1.el7,它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在處理依賴關系 mysql-community-client(x86-64) >= 5.7.9,它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 解決依賴關系完成
錯誤:軟體包:mysql-community-server-5.7.22-1.el7.x86_64 (/mysql-community-server-5.7.22-1.el7.x86_64)
          需要:mysql-community-common(x86-64) = 5.7.22-1.el7
錯誤:軟體包:mysql-community-server-5.7.22-1.el7.x86_64 (/mysql-community-server-5.7.22-1.el7.x86_64)
          需要:mysql-community-client(x86-64) >= 5.7.9
 您可以嘗試添加 --skip-broken 選項來解決該問題
 您可以嘗試執行:rpm -Va --nofiles --nodigest
           

4.提示安裝mysql-server需要安裝mysql-common與mysql-client,那麼我們開始安裝mysql-common和mysql-client,首先安裝mysql-common。

[[email protected] opt]# yum localinstall mysql-community-common-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-common-5.7.22-1.el7.x86_64.rpm: mysql-community-common-5.7.22-1.el7.x86_64
mysql-community-common-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-common.x86_64.0.5.7.22-1.el7 将被 安裝
--> 解決依賴關系完成

依賴關系解決

================================================================================
 Package  架構   版本         源                                           大小
================================================================================
正在安裝:
 mysql-community-common
          x86_64 5.7.22-1.el7 /mysql-community-common-5.7.22-1.el7.x86_64 2.5 M

事務概要
================================================================================
安裝  1 軟體包

總計:2.5 M
安裝大小:2.5 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test


Transaction check error:
  file /usr/share/mysql/czech/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/danish/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/dutch/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/english/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/estonian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/french/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/german/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/greek/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/hungarian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/italian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/japanese/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/korean/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/norwegian-ny/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/norwegian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/polish/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/portuguese/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/romanian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/russian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/serbian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/slovak/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/spanish/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/swedish/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/ukrainian/errmsg.sys from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/cp1256.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/cp1257.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/cp850.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/cp852.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/cp866.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/dec8.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/geostd8.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/greek.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/hebrew.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/hp8.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/koi8r.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/koi8u.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/latin1.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/latin2.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/latin5.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/latin7.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/macce.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/macroman.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64
  file /usr/share/mysql/charsets/swe7.xml from install of mysql-community-common-5.7.22-1.el7.x86_64 conflicts with file from package mariadb-libs-1:5.5.56-2.el7.x86_64

錯誤概要
-------------
           

5.提示與mariadb-libs有沖突,那麼我們删除mariadb-libs程式。

[[email protected] opt]# yum -y remove mariadb-libs
已加載插件:fastestmirror
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mariadb-libs.x86_64.1.5.5.56-2.el7 将被 删除
--> 正在處理依賴關系 libmysqlclient.so.18()(64bit),它被軟體包 2:postfix-2.10.1-6.el7.x86_64 需要
--> 正在處理依賴關系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被軟體包 2:postfix-2.10.1-6.el7.x86_64 需要
--> 正在檢查事務
---> 軟體包 postfix.x86_64.2.2.10.1-6.el7 将被 删除
--> 正在處理依賴關系 /usr/sbin/sendmail,它被軟體包 redhat-lsb-core-4.1-27.el7.centos.1.x86_64 需要
--> 正在使用新的資訊重新解決依賴關系
--> 正在檢查事務
---> 軟體包 redhat-lsb-core.x86_64.0.4.1-27.el7.centos.1 将被 删除
--> 解決依賴關系完成

依賴關系解決

================================================================================
 Package              架構        版本                     源              大小
================================================================================
正在删除:
 mariadb-libs         x86_64      1:5.5.56-2.el7           @anaconda      4.4 M
為依賴而移除:
 postfix              x86_64      2:2.10.1-6.el7           @anaconda       12 M
 redhat-lsb-core      x86_64      4.1-27.el7.centos.1      @base           45 k

事務概要
================================================================================
移除  1 軟體包 (+2 依賴軟體包)

安裝大小:17 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在删除    : redhat-lsb-core-4.1-27.el7.centos.1.x86_64                  1/3 
  正在删除    : 2:postfix-2.10.1-6.el7.x86_64                               2/3 
  正在删除    : 1:mariadb-libs-5.5.56-2.el7.x86_64                          3/3 
  驗證中      : 1:mariadb-libs-5.5.56-2.el7.x86_64                          1/3 
  驗證中      : 2:postfix-2.10.1-6.el7.x86_64                               2/3 
  驗證中      : redhat-lsb-core-4.1-27.el7.centos.1.x86_64                  3/3 

删除:
  mariadb-libs.x86_64 1:5.5.56-2.el7                                            

作為依賴被删除:
  postfix.x86_64 2:2.10.1-6.el7   redhat-lsb-core.x86_64 0:4.1-27.el7.centos.1  

完畢!
           

6.是接下來繼續安裝mysql-community-common-5.7.22-1.el7.x86_64.rpm。

[[email protected] opt]# yum localinstall mysql-community-common-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-common-5.7.22-1.el7.x86_64.rpm: mysql-community-common-5.7.22-1.el7.x86_64
mysql-community-common-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-common.x86_64.0.5.7.22-1.el7 将被 安裝
--> 解決依賴關系完成

依賴關系解決

================================================================================
 Package  架構   版本         源                                           大小
================================================================================
正在安裝:
 mysql-community-common
          x86_64 5.7.22-1.el7 /mysql-community-common-5.7.22-1.el7.x86_64 2.5 M

事務概要
================================================================================
安裝  1 軟體包

總計:2.5 M
安裝大小:2.5 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安裝    : mysql-community-common-5.7.22-1.el7.x86_64                  1/1 
  驗證中      : mysql-community-common-5.7.22-1.el7.x86_64                  1/1 

已安裝:
  mysql-community-common.x86_64 0:5.7.22-1.el7                                  

完畢!
           

7.接下來安裝mysql-client。

[[email protected] opt]# yum localinstall mysql-community-client-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-client-5.7.22-1.el7.x86_64.rpm: mysql-community-client-5.7.22-1.el7.x86_64
mysql-community-client-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-client.x86_64.0.5.7.22-1.el7 将被 安裝
--> 正在處理依賴關系 mysql-community-libs(x86-64) >= 5.7.9,它被軟體包 mysql-community-client-5.7.22-1.el7.x86_64 需要
Loading mirror speeds from cached hostfile
--> 解決依賴關系完成
錯誤:軟體包:mysql-community-client-5.7.22-1.el7.x86_64 (/mysql-community-client-5.7.22-1.el7.x86_64)
          需要:mysql-community-libs(x86-64) >= 5.7.9
 您可以嘗試添加 --skip-broken 選項來解決該問題
 您可以嘗試執行:rpm -Va --nofiles --nodigest
           

8.提示需要安裝mysql-lib。

[[email protected] opt]# yum localinstall mysql-community-libs-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-libs-5.7.22-1.el7.x86_64.rpm: mysql-community-libs-5.7.22-1.el7.x86_64
mysql-community-libs-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-libs.x86_64.0.5.7.22-1.el7 将被 安裝
--> 解決依賴關系完成

依賴關系解決

================================================================================
 Package    架構   版本         源                                         大小
================================================================================
正在安裝:
 mysql-community-libs
            x86_64 5.7.22-1.el7 /mysql-community-libs-5.7.22-1.el7.x86_64 9.4 M

事務概要
================================================================================
安裝  1 軟體包

總計:9.4 M
安裝大小:9.4 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安裝    : mysql-community-libs-5.7.22-1.el7.x86_64                    1/1 
  驗證中      : mysql-community-libs-5.7.22-1.el7.x86_64                    1/1 

已安裝:
  mysql-community-libs.x86_64 0:5.7.22-1.el7                                    

完畢!
           

9.繼續安裝mysql-client。

[[email protected] opt]# yum localinstall mysql-community-client-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-client-5.7.22-1.el7.x86_64.rpm: mysql-community-client-5.7.22-1.el7.x86_64
mysql-community-client-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-client.x86_64.0.5.7.22-1.el7 将被 安裝
--> 解決依賴關系完成

依賴關系解決

================================================================================
 Package  架構   版本         源                                           大小
================================================================================
正在安裝:
 mysql-community-client
          x86_64 5.7.22-1.el7 /mysql-community-client-5.7.22-1.el7.x86_64 106 M

事務概要
================================================================================
安裝  1 軟體包

總計:106 M
安裝大小:106 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安裝    : mysql-community-client-5.7.22-1.el7.x86_64                  1/1 
  驗證中      : mysql-community-client-5.7.22-1.el7.x86_64                  1/1 

已安裝:
  mysql-community-client.x86_64 0:5.7.22-1.el7                                  

完畢!
           

10.重新安裝mysql-server

[[email protected] opt]# yum localinstall mysql-community-server-5.7.22-1.el7.x86_64.rpm 
已加載插件:fastestmirror
正在檢查 mysql-community-server-5.7.22-1.el7.x86_64.rpm: mysql-community-server-5.7.22-1.el7.x86_64
mysql-community-server-5.7.22-1.el7.x86_64.rpm 将被安裝
正在解決依賴關系
--> 正在檢查事務
---> 軟體包 mysql-community-server.x86_64.0.5.7.22-1.el7 将被 安裝
--> 正在處理依賴關系 libaio.so.1(LIBAIO_0.1)(64bit),它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
Loading mirror speeds from cached hostfile
--> 正在處理依賴關系 libaio.so.1(LIBAIO_0.4)(64bit),它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在處理依賴關系 libaio.so.1()(64bit),它被軟體包 mysql-community-server-5.7.22-1.el7.x86_64 需要
--> 正在檢查事務
---> 軟體包 libaio.x86_64.0.0.3.109-13.el7 将被 安裝
--> 解決依賴關系完成

依賴關系解決

================================================================================
 Package
        架構   版本           源                                           大小
================================================================================
正在安裝:
 mysql-community-server
        x86_64 5.7.22-1.el7   /mysql-community-server-5.7.22-1.el7.x86_64 743 M
為依賴而安裝:
 libaio x86_64 0.3.109-13.el7 base                                         24 k

事務概要
================================================================================
安裝  1 軟體包 (+1 依賴軟體包)

總計:743 M
總下載下傳量:24 k
安裝大小:743 M
Is this ok [y/d/N]: y
Downloading packages:
libaio-0.3.109-13.el7.x86_64.rpm                           |  24 kB   00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安裝    : libaio-0.3.109-13.el7.x86_64                                1/2 
  正在安裝    : mysql-community-server-5.7.22-1.el7.x86_64                  2/2 
  驗證中      : libaio-0.3.109-13.el7.x86_64                                1/2 
  驗證中      : mysql-community-server-5.7.22-1.el7.x86_64                  2/2 

已安裝:
  mysql-community-server.x86_64 0:5.7.22-1.el7                                  

作為依賴被安裝:
  libaio.x86_64 0:0.3.109-13.el7                                                

完畢!
           
安裝成功!!!
到這裡mysql-server就安裝結束了。

繼續閱讀