红联Linux门户
Linux帮助

Linux环境安装mysql客户端报错Failed dependencies

发布时间:2016-10-19 11:48:50来源:linux网站作者:juan131006
安装rpm包:MySQL-community-client-5.7.13-1.el7.x86_64.rpm 
 
报错如下:
/home/mysql>sudo rpm -ivh mysql-community-client-5.7.13-1.el7.x86_64.rpm 
[sudo] password for *****: 
warning: mysql-community-client-5.7.13-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-libs(x86-64) >= 5.7.9 is needed by mysql-community-client-5.7.13-1.el7.x86_64
mariadb is obsoleted by mysql-community-client-5.7.13-1.el7.x86_64
 
解决办法:安装包后面增加2个参数(安装时不再分析包之间的依赖关系而直接安装)
/home/mysql>sudo rpm -ivh mysql-community-client-5.7.13-1.el7.x86_64.rpm --nodeps --force
[sudo] password for ******: 
warning: mysql-community-client-5.7.13-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
1:mysql-community-client-5.7.13-1.e#####################             ( 63%)
/usr/include/mysql
/usr/lib64/mysql
 
本文永久更新地址:http://www.linuxdiyf.com/linux/25184.html