Percona XtraDB wont install due to conflict with MariaDB in CentOS 7
In this case, i want to install Percona XtraDB Cluster 5.7 to replace MariaDB 10.7 on my CentOS 7 VPS.
First i have to remove mariadb 10.7
yum remove mysql
rm -rf /var/lib/mysql
yum remove mysql
Loaded plugins: elrepo, fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-client.x86_64 0:10.7.3-1.el7.centos will be erased
--> Processing Dependency: MariaDB-client >= 10.6.1 for package: MariaDB-server- 10.7.3-1.el7.centos.x86_64
--> Running transaction check
---> Package MariaDB-server.x86_64 0:10.7.3-1.el7.centos will be erased
--> Finished Dependency Resolution
----------
Removed:
MariaDB-client.x86_64 0:10.7.3-1.el7.centos
Dependency Removed:
MariaDB-server.x86_64 0:10.7.3-1.el7.centos
Complete!
Uninstall process was completed and I'm going to install Percona XtraDB Cluster 5.7.
All i have to do is install percona-release first, and install percona
# Setup repository
sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
# Turns a release on
sudo percona-release enable pxc-57 release
# Setup Percona XtraDB Cluster 5.7
sudo percona-release setup -y pxc-57
# Enabling the Percona XtraDB Cluster 5.7 repository
# Enabling the Percona XtraBackup 2.4 repository
sudo yum install -y Percona-XtraDB-Cluster-57
Transaction check error:
file /etc/my.cnf from install of Percona-XtraDB-Cluster-server-57-5.7.37-31.57.1.el7.x86_64 conflicts with file from package MariaDB-common-10.7.3-1.el7.centos.x86_64
file /usr/lib64/mysql/plugin/dialog.so from install of Percona-XtraDB-Cluster-server-57-5.7.37-31.57.1.el7.x86_64 conflicts with file from package MariaDB-common-10.7.3-1.el7.centos.x86_64
But the installation was not completed, looks like mariadb package still there and it conflict with Percona XtraDB package (or like any mysql variant).
Solution :
Remove completely mariadb first by using this command :
yum remove mariadb-libs
and try reinstall percona-xtradb-cluster-57 again.
yum install Percona-XtraDB-Cluster-57
I got this solution from stackoverflow.
Thanks