(py3) [root@localhost opt]# yum -y install mysql-community-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.7.37-1.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.7.37-1.el7 for package: mysql-community-server-5.7.37-1.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.37-1.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.7.37-1.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.37-1.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.7.37-1.el7 will be installed
--> Running transaction check
---> Package mysql-community-libs.x86_64 0:5.7.37-1.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved
===================================================================================================================================================================================================================
Package ArchVersionRepositorySize
===================================================================================================================================================================================================================
Installing:
mysql-community-serverx86_645.7.37-1.el7 mysql57-community174 M
Installing for dependencies:
mysql-community-clientx86_645.7.37-1.el7 mysql57-community 25 M
mysql-community-commonx86_645.7.37-1.el7 mysql57-community311 k
mysql-community-libsx86_645.7.37-1.el7 mysql57-community2.4 MTransaction Summary
===================================================================================================================================================================================================================
Install1 Package (+3 Dependent packages)Total download size: 202 M
Installed size: 878 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql57-community/packages/mysql-community-common-5.7.37-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY ]0.0 B/s | 767 kB--:--:-- ETA
Public key for mysql-community-common-5.7.37-1.el7.x86_64.rpm is not installed
(1/4): mysql-community-common-5.7.37-1.el7.x86_64.rpm | 311 kB00:00:00
(2/4): mysql-community-libs-5.7.37-1.el7.x86_64.rpm | 2.4 MB00:00:04
(3/4): mysql-community-client-5.7.37-1.el7.x86_64.rpm |25 MB00:01:01
(4/4): mysql-community-server-5.7.37-1.el7.x86_64.rpm | 174 MB00:03:40
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total917 kB/s | 202 MB00:03:45
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
Userid : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
Package: mysql57-community-release-el7-8.noarch (@/mysql57-community-release-el7-8.noarch)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysqlPublic key for mysql-community-server-5.7.37-1.el7.x86_64.rpm is not installed
Failing package is: mysql-community-server-5.7.37-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql这里发现这个问题:
Public key for mysql-community-server-5.7.37-1.el7.x86_64.rpm is not installedFailing package is: mysql-community-server-5.7.37-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql备注:
由于MySQL在CentOS7中收费了,所以已经不支持MySQL了,取而代之在CentOS7内部集成了mariadb,而安装MySQL的话会和MariaDB的文件冲突。
如果安装的话,需要卸载MariaDB,另外也注意安装正确的安装包,以及安装顺序,建议参考我的另外一篇文章。
总结
到此这篇关于centos7安装mysql5.7踩坑的文章就介绍到这了,更多相关centos7安装mysql5.7内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!