简体   繁体   English

如何删除 MariaDB 并为 Postfix 安装 MySQL?

[英]How to remove MariaDB and install MySQL for Postfix?

I have removed MariaDB completely and installed MySQL V.8 but now when I want to install postfix with yum install postfix .我已经完全删除了 MariaDB 并安装了 MySQL V.8,但是现在当我想使用yum install postfix Its dependencies are MariaDB-common and MariaDB-compat so it needs them however I have uninstalled it.它的依赖项是MariaDB-commonMariaDB-compat所以它需要它们,但是我已经卸载了它。 At last in returns a Transaction check error with this message that最后在返回Transaction check error与此消息

file /etc/my.cnf from install of MariaDB-common-10.2.23-1.el7.centos.x86_64 conflicts with file from package mysql-community-server-8.0.15-1.el7.x86_64来自安装 MariaDB-common-10.2.23-1.el7.centos.x86_64 的文件 /etc/my.cnf 与来自软件包 mysql-community-server-8.0.15-1.el7.x86_64 的文件冲突

How can I fix it?我该如何解决?

UPDATE更新

In this website I got that it needs a file named libmysqlclient.so.18 which must be in /usr/lib64/ directory but it is missed.这个网站上,我知道它需要一个名为libmysqlclient.so.18的文件,该文件必须在/usr/lib64/目录中,但它被遗漏了。 How can I get this file without running command yum install MariaDB* ?如何在不运行命令yum install MariaDB*情况下获取此文件?

I had the similar issue file /etc/my.cnf from install of mysql-community-server-8.0.16-2.el7.x86_64 conflicts with file from package MariaDB-common-10.3.3-1.el7.centos.x86_64 issued by removing mariadb packages.我有类似的问题file /etc/my.cnf from install of mysql-community-server-8.0.16-2.el7.x86_64 conflicts with file from package MariaDB-common-10.3.3-1.el7.centos.x86_64通过删除 mariadb 包发布。

yum remove MariaDB-common*

For more information, please refer to Stack Exchange QA更多信息请参考Stack Exchange QA

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM