0

In my CentOS Stream Linux 9 when I run the command:

yum install perl-DBD-MySQL

It gives me an error:

Transaction Summary
================================================================================================================================================================================================================
Install  3 Packages

Total size: 1.4 M
Installed size: 7.3 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] mysql-common-8.0.41-2.el9.x86_64.rpm: Already downloaded
[SKIPPED] mysql-libs-8.0.41-2.el9.x86_64.rpm: Already downloaded
[SKIPPED] perl-DBD-MySQL-4.053-1.el9.x86_64.rpm: Already downloaded
Running transaction check
Transaction check succeeded.
Running transaction test
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: Transaction test error:
  file /usr/share/mysql/charsets/Index.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1251.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1256.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp1257.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp850.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp852.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/cp866.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/dec8.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/geostd8.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/greek.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/hebrew.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/hp8.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/keybcs2.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/koi8r.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/koi8u.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/latin1.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/latin2.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/latin5.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/latin7.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/macce.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/macroman.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64
  file /usr/share/mysql/charsets/swe7.xml from install of mysql-common-8.0.41-2.el9.x86_64 conflicts with file from package MariaDB-common-10.6.22-1.el9.x86_64

I have done

yum install perl-DBD-MySQL --enablerepo=*

But got no luck!

What else can I do? Thanks in advance!

1 Answer 1

2

You're using the mainline "MariaDB" continuation of the original free MySQL source code, not Oracle's "MySQL (trademark)" fork.

So, the package you need to install is perl-DBD-MariaDB instead of perl-DBD-MySQL. The functionality is identical, just that it works with both MariaDB and MySQL instead of just the older "pre-oracle" MySQL parts.

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.