mariadb mysql 冲突_centos7 安装 mariadb 出现冲突

今天在一台centos7的机器上安装mariadb 出现故障:

[root@localhost ~]# yum install mariadb101u-server

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.yun-idc.com

* epel: mirror.premi.st

* extras: mirrors.tuna.tsinghua.edu.cn

* ius: mirrors.tuna.tsinghua.edu.cn

* updates: mirrors.nwsuaf.edu.cn

* webtatic: sp.repo.webtatic.com

Resolving Dependencies

--> Running transaction check

---> Package mariadb101u-server.x86_64 1:10.1.21-1.ius.centos7 will be installed

--> Processing Dependency: mariadb101u-common(x86-64) = 1:10.1.21-1.ius.centos7 for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: mariadb101u-config(x86-64) = 1:10.1.21-1.ius.centos7 for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: mariadb101u-errmsg(x86-64) = 1:10.1.21-1.ius.centos7 for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: mariadb101u-libs(x86-64) = 1:10.1.21-1.ius.centos7 for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: lsof for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: mariadb101u(x86-64) for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: net-tools for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: perl(DBD::mysql) for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: perl(DBI) for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: perl(Data::Dumper) for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Processing Dependency: rsync for package: 1:mariadb101u-server-10.1.21-1.ius.centos7.x86_64

--> Running transaction check

---> Package lsof.x86_64 0:4.87-4.el7 will be installed

---> Package mariadb101u.x86_64 1:10.1.21-1.ius.centos7 will be installed

---> Package mariadb101u-common.x86_64 1:10.1.21-1.ius.centos7 will be installed

---> Package mariadb101u-config.x86_64 1:10.1.21-1.ius.centos7 will be installed

---> Package mariadb101u-errmsg.x86_64 1:10.1.21-1.ius.centos7 will be installed

---> Package mariadb101u-libs.x86_64 1:10.1.21-1.ius.centos7 will be installed

---> Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed

---> Package perl-DBD-MySQL.x86_64 0:4.023-5.el7 will be installed

---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed

--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64

--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64

---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed

---> Package rsync31u.x86_64 0:3.1.2-1.ius.centos7 will be installed

--> Running transaction check

---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed

--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch

--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch

--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch

--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch

--> Running transaction check

---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed

--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch

--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch

---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed

--> Running transaction check

---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed

---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed

--> Processing Conflict: 1:mariadb101u-config-10.1.21-1.ius.centos7.x86_64 conflicts mariadb-libs < 1:10.1.21-1.ius.centos7 --> Processing Conflict: 1:mariadb101u-libs-10.1.21-1.ius.centos7.x86_64 conflicts mariadb-libs < 1:10.1.21-1.ius.centos7 --> Finished Dependency Resolution

Error: mariadb101u-libs conflicts with 1:mariadb-libs-5.5.52-1.el7.x86_64

Error: mariadb101u-config conflicts with 1:mariadb-libs-5.5.52-1.el7.x86_64

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

系统本身自带 MariaDB,我们需要先删除掉系统本身带的,才能正常安装比较新的

yum remove mariadb-libs -y

[root@localhost ~]# yum remove mariadb-libs -y

Loaded plugins: fastestmirror

Resolving Dependencies

--> Running transaction check

---> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be erased

--> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64

--> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64

--> Running transaction check

---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased

--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================================================

Package Arch Version Repository Size

=================================================================================================================================================================================

Removing:

mariadb-libs x86_64 1:5.5.52-1.el7 @base 4.4 M

Removing for dependencies:

postfix x86_64 2:2.10.1-6.el7 @anaconda 12 M

Transaction Summary

=================================================================================================================================================================================

Remove 1 Package (+1 Dependent package)

Installed size: 17 M

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Erasing : 2:postfix-2.10.1-6.el7.x86_64 1/2

Erasing : 1:mariadb-libs-5.5.52-1.el7.x86_64 2/2

Verifying : 2:postfix-2.10.1-6.el7.x86_64 1/2

Verifying : 1:mariadb-libs-5.5.52-1.el7.x86_64 2/2

Removed:

mariadb-libs.x86_64 1:5.5.52-1.el7

Dependency Removed:

postfix.x86_64 2:2.10.1-6.el7

Complete!

然后再次进行安装,一切顺利

yum install mariadb101-server

然后启动

[root@localhost ~]# systemctl start mariadb

添加到开机启动中。

[root@localhost ~]# systemctl enable mariadb

Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值