原文:安装Mariadb时Mariadb依赖库跟原来安装的mysql community版本依赖冲突解决。
在一台原来安装了mysql community版本的机器上,安装Mariadb,出错:
Transaction check error:
file /etc/my.cnf from install of MariaDB-common-10.6.4-1.el7.centos.x86_64 conflicts with file from package mysql-community-server-8.0.25-1.el7.x86_64
file /usr/lib64/libmysqlclient.so.18.0.0 from install of MariaDB-compat-10.6.4-1.el7.centos.x86_64 conflicts with file from package Percona-XtraDB-Cluster-shared-55-1:5.5.37-25.10.756.el6.x86_64
查看当前安装的mysql:
[xiaofang@sd-vm-0003935 soft-pkg]$ sudo rpm -qa |grep -i mysql
mysql-community-client-8.0.25-1.el7.x86_64
mysql-community-libs-8.0.25-1.el7.x86_64
mysql-community-client-plugins-8.0.25-1.el7.x86_64
mysql-community-server-8.0.25-1.el7.x86_64
mysql-community-common-8.0.25-1.el7.x86_64
解决办法是卸载原来的mysql及mysql lib依赖,操作如下:
# 卸载mysql
[xiaofang@sd-vm-0003935 soft-pkg]$ sudo yum remove mysql-*
# 卸载依赖
yum remove mysql-libs
然后执行安装mariadb就可以了:
sudo yum -y install MariaDB-com*
通过rpm方式安装Mariadb参考: 基于Mariadb 10.6.4在CentOS 7环境下配置Galera Cluster集群。
最新评论
网飞没问题, 迪士尼+有解决方案么?
pp助手是安卓手机用的,根本下载用不来苹果
已解决
这样的话数据库里的结构为{"attachment":{"content":"xxx"}}, 要怎么才能变成{"content":"xxx"},从而使结构保持一致?
赞! make test不过的坑都写到的,谢谢楼主~
谢谢你
用了root用户还是一直502是怎么回事呢
student id 是空的