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)