qwe3223678qwe 发表于 2018-10-8 10:18:13

yum 安装 MySQL

# yum -y install mysql-community-server  
Loaded plugins: axelget, fastestmirror, langpacks
  
No metadata available for base
  
No metadata available for epel
  
No metadata available for extras
  
repomd.xml                                                                                                                                    | 2.5 kB00:00:00
  
update mysql-connectors-community metadata successfully
  
repomd.xml                                                                                                                                    | 2.5 kB00:00:00
  
update mysql-tools-community metadata successfully
  
repomd.xml                                                                                                                                    | 2.5 kB00:00:00
  
update mysql57-community metadata successfully
  
No metadata available for updates
  
mysql-connectors-community                                                                                                                      | 2.5 kB00:00:00
  
mysql-tools-community                                                                                                                           | 2.5 kB00:00:00
  
mysql57-community                                                                                                                               | 2.5 kB00:00:00
  
(1/3): mysql-tools-community/x86_64/primary_db                                                                                                |24 kB00:00:01
  
(2/3): mysql57-community/x86_64/primary_db                                                                                                      |28 kB00:00:01
  
(3/3): mysql-connectors-community/x86_64/primary_db                                                                                             | 8.6 kB00:00:02
  
Loading mirror speeds from cached hostfile
  
* base: mirrors.aliyun.com
  
* epel: mirrors.neusoft.edu.cn
  
* extras: mirrors.163.com
  
* updates: mirrors.163.com
  
Resolving Dependencies
  
--> Running transaction check
  
---> Package mysql-community-server.x86_64 0:5.7.10-1.el7 will be installed
  
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.10-1.el7 for package: mysql-community-server-5.7.10-1.el7.x86_64
  
--> Processing Dependency: mysql-community-client(x86-64) = 5.7.10-1.el7 for package: mysql-community-server-5.7.10-1.el7.x86_64
  
--> Running transaction check
  
---> Package mysql-community-client.x86_64 0:5.7.10-1.el7 will be installed
  
--> Processing Dependency: mysql-community-libs(x86-64) = 5.7.10-1.el7 for package: mysql-community-client-5.7.10-1.el7.x86_64
  
---> Package mysql-community-common.x86_64 0:5.7.10-1.el7 will be installed
  
--> Running transaction check
  
---> Package mariadb-libs.x86_64 1:5.5.44-2.el7.centos will be obsoleted
  
--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
  
--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
  
---> Package mysql-community-libs.x86_64 0:5.7.10-1.el7 will be obsoleting
  
--> Running transaction check
  
---> Package mysql-community-libs-compat.x86_64 0:5.7.10-1.el7 will be obsoleting
  
--> Finished Dependency Resolution
  

  
Dependencies Resolved
  

  
=======================================================================================================================================================================
  
Package                                          Arch                        Version                               Repository                              Size
  
=======================================================================================================================================================================
  
Installing:
  
mysql-community-libs                               x86_64                        5.7.10-1.el7                        mysql57-community                        2.2 M
  
   replacingmariadb-libs.x86_64 1:5.5.44-2.el7.centos
  
mysql-community-libs-compat                        x86_64                        5.7.10-1.el7                        mysql57-community                        2.0 M
  
   replacingmariadb-libs.x86_64 1:5.5.44-2.el7.centos
  
mysql-community-server                           x86_64                        5.7.10-1.el7                        mysql57-community                        142 M
  
Installing for dependencies:
  
mysql-community-client                           x86_64                        5.7.10-1.el7                        mysql57-community                         24 M
  
mysql-community-common                           x86_64                        5.7.10-1.el7                        mysql57-community                        269 k
  

  
Transaction Summary
  
=======================================================================================================================================================================
  
Install3 Packages (+2 Dependent packages)
  

  
Total download size: 171 M
  
Downloading packages:
  
mysql-community-server-5.7.10-1.el7.x86_64.rpm                                                                                                | 142 MB00:03:42
  
mysql-community-libs-compat-5.7.10-1.el7.x86_64.rpm                                                                                             | 2.0 MB00:00:03
  
mysql-community-libs-5.7.10-1.el7.x86_64.rpm                                                                                                    | 2.2 MB00:00:05
  
mysql-community-client-5.7.10-1.el7.x86_64.rpm                                                                                                |24 MB00:00:41
  
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.10-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY00 ETA
  
Public key for mysql-community-common-5.7.10-1.el7.x86_64.rpm is not installed
  
mysql-community-common-5.7.10-1.el7.x86_64.rpm                                                                                                | 269 kB00:00:01
  
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  
Importing GPG key 0x5072E1F5:
  
Userid   : "MySQL Release Engineering "
  
Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
  
Package    : mysql57-community-release-el7-7.noarch (@/mysql57-community-release-el7-7.noarch)
  
From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
  
Running transaction check
  
Running transaction test
  
Transaction test succeeded
  
Running transaction
  
Installing : mysql-community-common-5.7.10-1.el7.x86_64                                                                                                          1/6
  
Installing : mysql-community-libs-5.7.10-1.el7.x86_64                                                                                                            2/6
  
Installing : mysql-community-client-5.7.10-1.el7.x86_64                                                                                                          3/6
  
Installing : mysql-community-server-5.7.10-1.el7.x86_64                                                                                                          4/6
  
Installing : mysql-community-libs-compat-5.7.10-1.el7.x86_64                                                                                                   5/6
  
Erasing    : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64                                                                                                         6/6
  
Verifying: mysql-community-server-5.7.10-1.el7.x86_64                                                                                                          1/6
  
Verifying: mysql-community-libs-compat-5.7.10-1.el7.x86_64                                                                                                   2/6
  
Verifying: mysql-community-common-5.7.10-1.el7.x86_64                                                                                                          3/6
  
Verifying: mysql-community-libs-5.7.10-1.el7.x86_64                                                                                                            4/6
  
Verifying: mysql-community-client-5.7.10-1.el7.x86_64                                                                                                          5/6
  
Verifying: 1:mariadb-libs-5.5.44-2.el7.centos.x86_64                                                                                                         6/6
  

  
Installed:
  
mysql-community-libs.x86_64 0:5.7.10-1.el7          mysql-community-libs-compat.x86_64 0:5.7.10-1.el7          mysql-community-server.x86_64 0:5.7.10-1.el7
  

  
Dependency Installed:
  
mysql-community-client.x86_64 0:5.7.10-1.el7                                       mysql-community-common.x86_64 0:5.7.10-1.el7
  

  
Replaced:
  
mariadb-libs.x86_64 1:5.5.44-2.el7.centos
  

  
Complete!
  
# clear


页: [1]
查看完整版本: yum 安装 MySQL