• Centos 7上安装 mysql, 与 mariadb冲突


    Centos 7上安装MySQL出现错误

    Transaction check error:
      file /etc/my.cnf from install of mysql-community-server-5.6.51-2.el7.x86_64 conflicts with file from package mariadb-config-3:10.1.20-2.el7ost.x86_64

     [ro@node3 ~]# rpm -e mariadb-config
    error: Failed dependencies:
        /etc/my.cnf is needed by (installed) mariadb-common-3:10.1.20-2.el7ost.x86_64
    (base) [ro@node3 ~]# rpm -e mariadb-common
    error: Failed dependencies:
        mariadb-common(x86-64) = 3:10.1.20-2.el7ost is needed by (installed) mariadb-libs-3:10.1.20-2.el7ost.x86_64
    (base) [ro@node3 ~]# rpm -e mariadb-libs
    error: Failed dependencies:
        libmysqlclient.so.18()(64bit) is needed by (installed) postfix-2:2.10.1-9.el7.x86_64
        libmysqlclient.so.18()(64bit) is needed by (installed) MySQL-python-1.2.5-1.el7.x86_64
        libmysqlclient.so.18()(64bit) is needed by (installed) net-snmp-agent-libs-1:5.7.2-47.el7.x86_64
        libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) postfix-2:2.10.1-9.el7.x86_64
        libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) MySQL-python-1.2.5-1.el7.x86_64
        libmysqlclient.so.18(libmysqlclient_18)(64bit) is needed by (installed) net-snmp-agent-libs-1:5.7.2-47.el7.x86_64

     

     解决方法:

    [rt@node3 ~]#  yum -y remove mariadb-config*

    Removed:
      mariadb-config.x86_64 3:10.1.20-2.el7ost                                                                                        

    Dependency Removed:
      MySQL-python.x86_64 0:1.2.5-1.el7                                                                                               
      keepalived.x86_64 0:1.3.5-16.el7                                                                                                
      mariadb-common.x86_64 3:10.1.20-2.el7ost                                                                                        
      mariadb-libs.x86_64 3:10.1.20-2.el7ost                                                                                          
      net-snmp-agent-libs.x86_64 1:5.7.2-47.el7                                                                                       
      openstack-neutron.noarch 1:12.0.2-0.20180421011362.0ec54fd.el7ost                                                               
      openstack-neutron-common.noarch 1:12.0.2-0.20180421011362.0ec54fd.el7ost                                                        
      openstack-neutron-openvswitch.noarch 1:12.0.2-0.20180421011362.0ec54fd.el7ost                                                   
      openstack-nova-common.noarch 1:17.0.3-0.20180420001141.el7ost                                                                   
      openstack-nova-compute.noarch 1:17.0.3-0.20180420001141.el7ost                                                                  
      openstack-nova-migration.noarch 1:17.0.3-0.20180420001141.el7ost                                                                
      postfix.x86_64 2:2.10.1-9.el7                                                                                                   
      python-neutron.noarch 1:12.0.2-0.20180421011362.0ec54fd.el7ost                                                                  
      python-nova.noarch 1:17.0.3-0.20180420001141.el7ost                                                                             
      python2-neutron-lib.noarch 0:1.13.0-1.el7ost                                                                                    
      python2-oslo-db.noarch 0:4.33.0-2.el7ost                                                                                        

    Complete!

  • 相关阅读:
    MyBatis学习总结(11)——MyBatis动态Sql语句
    MyBatis学习总结(11)——MyBatis动态Sql语句
    Dubbo学习总结(3)——Dubbo-Admin管理平台和Zookeeper注册中心的搭建
    Dubbo学习总结(1)——Dubbo入门基础与实例讲解
    Dubbo学习总结(1)——Dubbo入门基础与实例讲解
    Maven学习详解(13)——Maven常用命令大全与pom文件讲解
    3分钟了解ServiceStage 应用智能化运维【华为云分享】
    OBS带你玩转图片
    高性能Web动画和渲染原理系列(3)——transform和opacity为什么高性能
    【Python成长之路】Python爬虫 --requests库爬取网站乱码(xe4xb8xb0xe5xa)的解决方法
  • 原文地址:https://www.cnblogs.com/emanlee/p/14376856.html
Copyright © 2020-2023  润新知