当前位置: 代码迷 >> 综合 >> Linux_Centos7在安装Mysql常见错误依赖时失败——error: Failed dependencies:mysql-community-client-plugins
  详细解决方案

Linux_Centos7在安装Mysql常见错误依赖时失败——error: Failed dependencies:mysql-community-client-plugins

热度:6   发布时间:2023-12-13 01:09:01.0

MySql安装问题

  • 问题一:Centos7在安装Mysql依赖(libs)或客户端(client)时失败
    • 解决方案
  • 问题二:Centos7在安装Mysql服务器(server)时失败
    • 解决方案

问题一:Centos7在安装Mysql依赖(libs)或客户端(client)时失败

error: Failed dependencies:mysql-community-client-plugins = 8.0.27-1.el7 is needed by mysql-community-libs-8.0.27-1.el7.x86_64

解决方案

解决的方法就是在rpm 语句后面加上 --nodeps --force,安装时忽略依赖关系

rpm -ivh mysql-community-libs-8.0.27-1.el7.x86_64.rpm --nodeps --force

问题二:Centos7在安装Mysql服务器(server)时失败

warning: mysql-community-server-8.0.27-1.el7.x86_64.rpm: Header V3 DSA/SHA256 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:libaio.so.1()(64bit) is needed by mysql-community-server-8.0.27-1.el7.x86_64libaio.so.1(LIBAIO_0.1)(64bit) is needed by mysql-community-server-8.0.27-1.el7.x86_64libaio.so.1(LIBAIO_0.4)(64bit) is needed by mysql-community-server-8.0.27-1.el7.x86_64

解决方案

从错误提示中,可以得知MySQL缺少依赖包libaio

rpm -qa | grep libaio		//查询libaio包
yum -y install libaio		//安装libaio包rpm -ivh mysql-community-server-8.0.27-1.el7.x86_64.rpm		//重新安装Mysql服务器(server)
  相关解决方案