0
点赞
收藏
分享

微信扫一扫

【MySQL+Linux】rpm安装MySQL:warning: mysql-community-server-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1

毅会 2022-03-16 阅读 73

**在使用rpm**安装MySQL时报了下面的错误

[root@hr mysql]# rpm -ivh mysql-community-server-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
	/usr/bin/perl is needed by mysql-community-server-5.7.22-1.el7.x86_64
	perl(Getopt::Long) is needed by mysql-community-server-5.7.22-1.el7.x86_64
	perl(strict) is needed by mysql-community-server-5.7.22-1.el7.x86_64

因为安装MySQL服务是需要`libaio``,我们先查看是否安装了此包

rpm -qa|grep libaio

如果没有安装,请下载

yum -y install libaio

如果安装了,可以使用下面的命令来安装MySQL

rpm -ivh --nodeps  mysql-community-server-5.7.22-1.el7.x86_64.rpm
[root@hr mysql]# rpm -ivh --nodeps  mysql-community-server-5.7.22-1.el7.x86_64.rpm
warning: mysql-community-server-5.7.22-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-server-5.7.22-1.e################################# [100%]

这里时因为可能重复安装,需要卸载重新安装

举报

相关推荐

0 条评论