1818IP-服务器技术教程,云服务器评测推荐,服务器系统排错处理,环境搭建,攻击防护等

当前位置:首页 - Linux系统 - centos - 正文

君子好学,自强不息!

Centos 7上安装 mysql, 与 mariadb冲突

2023-02-25 | centos | gtxyzz | 6268°c
A+ A-

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!

本文来源:1818IP

本文地址:https://www.1818ip.com/post/32655.html

免责声明:本文由用户上传,如有侵权请联系删除!

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。