Linux_Centos7在安装Mysql常见错误依赖时失败
MySql安装问题
问题一:Centos7在安装Mysql依赖(libs)或客户端(client)时失败
解决方案
问题二:Centos7在安装Mysql服务器(server)时失败
解决方案
问题一:Centos7在安装Mysql依赖(libs)或客户端(client)时失败
warning: mysql-community-libs-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
mariadb-libs is obsoleted by mysql-community-libs-8.0.28-1.el7.x86_64
解决方案
- 先卸载mysql-libs
- 再执行安装
# 先卸载mysql-libs
yum remove mysql-libs
# 再执行安装
rpm -ivh mysql-community-libs-8.0.28-1.el7.x86_64.rpm
问题二:Centos7在安装Mysql服务器(server)时失败
warning: mysql-community-server-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY
error: Failed dependencies:
mysql-community-icu-data-files =8.0.28-1.el7 is needed by mysql-community-server-8.0.28-1.el7.x86_64
解决方案
- 解决的方法就是在rpm 语句后面加上 --nodeps --force,安装时忽略依赖关系
# 在rpm -ivh mysql-community-server-8.0.28-1.el7.x86_64.rpm 添加参数--force --nodeps
rpm -ivh mysql-community-server-8.0.28-1.el7.x86_64.rpm --force--nodeps