报错景象:

  error: Failed dependencies:
       perl(DBI) is needed by MySQL-server-4.0.26-0.i386
  error: Failed dependencies:
       perl(DBI) is needed by MySQL-client-4.0.26-0.i386

 

解决办法:

1、安装perlDBI,运行:

yum install perl-DBI

2、安装perl的依赖,运行:

yum install -y perl-Module-Install.noarch

 

 

注意:不要强制--force安装,安装完了也不能用!

 

 补充:

  由于centos 7默认是mariadb数据库,再去安装mysql之前,要先卸载mariadb

  安装时提示libaio错,可以安装libaio

yum install libaio