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!