centos7安装mysql数据库时libs与mariadb冲突问题解决

安装mysql数据库时,需要rpm安装libs,问题原因就是安装libs时系统存在mariadb的系统包

  1. 查看系统中的mariadb
	rpm -qa | grep mariadb
  1. rpm -e mariadb-libs-5.5.44-2.el7.centos.x86_64得到错误提示如下:
    提示有第三方库存在
    error: Failed dependencies:
    libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64
    libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-7.el7.x86_64

  2. rpm -ivh mysql-community-libs-8.0.18-1.el7.x86_64.rpm得到错误提示如下:
    warning: mysql-community-libs-8.0.18-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
    error: Failed dependencies:
    mariadb-libs is obsoleted by mysql-community-libs-8.0.18-1.el7.x86_64

  3. 解决办法
    强制删除:rpm -e --nodeps mariadb-libs-5.5.60-1.el7_5.x86_64

问题解决,目前是本人安装mysql数据库遇到的问题

你可能感兴趣的:(mysql)