1.Problem description
Installing mysql database Error: Dependency detection failed:
[root@tidbserver mysqlrpm]# rpm -ivh mysql-community-libs-8.0.34-1.el7.x86_64.rpm
Warning: mysql-community-libs-8.0 .34-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, Key ID 3a79bd29: NOKEY
Error: Dependency check failed:
mariadb- libs replaced by mysql-community-libs-8.0.34-1.el7.x86_64
2.Cause of occurrence
Mariadb belongs to the mysql branch, so there is a conflict when installing libs
[root@tidbserver mysqlrpm]# rpm -qa | grep -E 'mysql|mariadb'
mysql-community-client-plugins-8.0.34-1.el7.x86_64
mariadb-libs-5.5.68-1.el7.x86_64
mysql-community-common-8.0.34-1.el7.x86_64
3.Solution
Just delete the lib package that adjusts mariadb
rpm -e mariadb-libs-5.5.68-1.el7.x86_64 --nodeps
After executing the installation of mysql-libs, the installation was successful.