Should MariaDB replace mysql-libs also?

Asked by Gabriel PREDA on 2011-07-05

I have replaced MySQL with MariaDB but I cannot install other packages as they depend on mysql-libs.

Details below.

[radical@acasa ~]$ yum list MariaDB*
Installed Packages
MariaDB-client.x86_64 5.2.7-101.el5 @/MariaDB-client-5.2.7-101.el5.x86_64
MariaDB-devel.x86_64 5.2.7-101.el5 @/MariaDB-devel-5.2.7-101.el5.x86_64
MariaDB-server.x86_64 5.2.7-101.el5 @/MariaDB-server-5.2.7-101.el5.x86_64
MariaDB-shared.x86_64 5.2.7-101.el5 @/MariaDB-shared-5.2.7-101.el5.x86_64
MariaDB-test.x86_64 5.2.7-101.el5 @/MariaDB-test-5.2.7-101.el5.x86_64

[radical@acasa ~]$ yum install ...........
Transaction Check Error:
.........................................
  file /usr/share/mysql/charsets/Index.xml from install of mysql-libs-5.5.13-1.fc15.x86_64 conflicts with file from package MariaDB-server-5.2.7-101.el5.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of mysql-libs-5.5.13-1.fc15.x86_64 conflicts with file from package MariaDB-server-5.2.7-101.el5.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of mysql-libs-5.5.13-1.fc15.x86_64 conflicts with file from package MariaDB-server-5.2.7-101.el5.x86_64
.........................................

Question information

Language:
English Edit question
Status:
Answered
For:
MariaDB Edit question
Assignee:
No assignee Edit question
Last query:
2011-07-26
Last reply:
2011-07-27
Sergey Tikhonov (jtprof) said : #1

Please install "compat-mysql55" from repo: "remi-test"

My fault, I should have mentioned that this is happening on Fedora 15 (my home-development server).

[root@acasa ~]# yum --enablerepo=remi --enablerepo=remi-test list *mysql* | grep remi
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
mysql-utilities.noarch 1.0.1-0.5.2.34.fc15.remi remi
mysql-workbench.x86_64 5.2.34-1.fc15.remi remi
php-mysql.x86_64 5.3.7-0.4.RC3.fc15.remi remi-test

Although I believe the problem is not about compat libraries.

The problem is that package "MariaDB-server" already provides files that "mysql-libs" provides.
Maybe this is more of a packaging problem. "MariaDB-server" should have been marked as a replacement of both "mysql-server" and "mysql-libs". In this way when I'm trying to install a package that has as dependency "mysql-libs" yum/apt should not try to install "mysql-libs" as it does now.

Sergey Tikhonov (jtprof) said : #3

MariaDB needs in MySQL-libs.

At first you should remove from your server ALL MySQL packages (MySQL-Server, MySQL-devel, etc.), and MySQL-libs.
After that, to connect repo "remi-test" and to disconnect all repo in which there is a package "MySQL-libs"
yum --enablerepo=remi-test --disablerepo=remi install compat-mysql55

Why would MariaDB need MySQL-libs if yum complains exactly about the fact that files are already there provided by MariaDB-server-*.el5.x86_64

I installed compat-mysql55-5.5.11-1.el6.remi.x86_64 (on Fedora 15...) but the difference is as follows:

before:
1:net-snmp-5.6.1-7.fc15.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
1:net-snmp-5.6.1-7.fc15.x86_64 has missing requires of mysql-libs
remi-release-6-1.el6.remi.noarch has missing requires of epel-release >= ('0', '6', None)

after:
1:net-snmp-5.6.1-7.fc15.x86_64 has missing requires of mysql-libs
remi-release-6-1.el6.remi.noarch has missing requires of epel-release >= ('0', '6', None)

So the only cleared warning was about libmysqlclient.so.18... I say MariaDB pachakes SHOULD obsolete also mysql-libs as they already provide most of the files from mysql-libs!

p4guru (p4guru) said : #5

Having similar problem on centos 6 with mariadb52 yum repo

via

rpm -ivh http://master.ourdelta.org/yum/CentOS-MariaDB52/ourdelta-release-5-1.noarch.rpm

yum -y install MariaDB-client MariaDB-devel MariaDB-server MariaDB-shared MariaDB-test

trying to install compat-mysql55 still results in mysql-lib install is this correct ??

yum --enablerepo=remi,remi-test install compat-mysql55

Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: mirror.optus.net
 * epel: mirror.optus.net
 * extras: mirror.optus.net
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
 * rpmforge: fr2.rpmfind.net
 * updates: mirror.optus.net
remi | 2.9 kB 00:00
remi/primary_db | 173 kB 00:03
remi-test | 2.9 kB 00:00
remi-test/primary_db | 42 kB 00:01
Setting up Install Process
Package compat-mysql55 is obsoleted by mysql-libs, trying to install mysql-libs-5.5.15-1.el6.remi.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.5.15-1.el6.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================================================================
 Package Arch Version Repository Size
================================================================================================================================
Installing:
 mysql-libs x86_64 5.5.15-1.el6.remi remi 756 k

Transaction Summary
================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)

Total download size: 756 k
Installed size: 4.0 M
Is this ok [y/N]:

Can you help with this problem?

Provide an answer of your own, or ask Gabriel PREDA for more information if necessary.

To post a message you must log in.