Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed mysql on my centos 6 yesterday but I wasb't aware that it's installing mysql 5.1 which is an outdated version. Now I've remove old version and all it's dependencies, but when I try to install MySQL 5.5 yum says there are problems because of mysql-libs conflicting with new one.

[root@Pooya /]# yum --enablerepo=remi install mysql mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * ius:
 * remi:
 * rpmforge:
 * updates:
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.x86_64 0:5.5.28-1.el6.remi will be installed
--> Processing Dependency: mysql-libs(x86-64) = 5.5.28-1.el6.remi for package: mysql-5.5.28-1.el6.remi.x86_64
---> Package mysql-server.x86_64 0:5.5.28-1.el6.remi will be installed
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.5.28-1.el6.remi.x86_64
--> Running transaction check
---> Package mysql-libs.x86_64 0:5.5.28-1.el6.remi will be installed
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Running transaction check
---> Package mysql51-libs.x86_64 0:5.1.66-1.ius.el5 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package                                       Arch                                  Version                                           Repository                           Size
 mysql                                         x86_64                                5.5.28-1.el6.remi                                 remi                                5.7 M
 mysql-server                                  x86_64                                5.5.28-1.el6.remi                                 remi                                 10 M
Installing for dependencies:
 mysql-libs                                    x86_64                                5.5.28-1.el6.remi                                 remi                                771 k
 mysql51-libs                                  x86_64                                5.1.66-1.ius.el5                                  ius                                 1.7 M
 perl-DBD-MySQL                                x86_64                                4.013-3.el6                                       base                                134 k

Transaction Summary

As you can see it's downloading both mysql libs for mysql 5.5 and 5.1! How can I fix that?

share|improve this question

You also have the IUS community repo installed and enabled. Disable this repo, as it conflicts with remi (and many other repositories).

share|improve this answer
How can I do that? – Farid Rn Nov 13 '12 at 15:20
It seems that I have too many repositories which are conflicting each other! Which repositories should I keep and which I should disable? – Farid Rn Nov 13 '12 at 15:21

I don't think this is a problem that needs to be fixed. You have different libraries that depend on different versions of the, the DB server can talk to clients of different versions safely. In this case MySQL comes with some utilities written in perl and the perl MySQL library is built against the 5.1 version of the client library, shouldn't affect the utilities in any way.

share|improve this answer

If you want to install MySql 5.5 on a CentOS 6 and over-right conflicts in mysql-libs you have to:

yum install yum-plugin-replace
rpm -Uvh
yum install mysql.`uname -i` yum-plugin-replace
yum replace mysql --replace-with mysql55w
yum replace mysql-libs --replace-with mysql55w-libs
yum install mysql55w-server mysql55w
service mysqld start

Enter your password and done!

share|improve this answer
up vote -2 down vote accepted

The problem was because of repositories conflict, which some of them are storing newer version of mySQL and some of them are just holding their old, sure-to-be-stable versions.

I disabled those repositories and kept only the ones which are holding latest stable version of MySQL and problem fixed.

Thanks for your help!

share|improve this answer
This is not likely to encourage people to answer any new questions you post. – Michael Hampton Dec 14 '12 at 19:12
@MichaelHampton I saw my accept rate which was 0(!) and I took a look at my unanswered questioned and not a single question of mine has beed answered, so I started to writing answers for the problems which I found solutions for them by myself, what is wrong with that? – Farid Rn Dec 14 '12 at 19:22
@MichaelHampton I have wrote 2 comments under your answer which by the way you didn't even bothered to answer one of them. – Farid Rn Dec 14 '12 at 19:23
@faridv I think Michael took issue with the fact that his answer pointed to the solution, yet you wrote a nearly identical Answer and Accepted your own instead of his. This sort of behavior is highly frowned upon on Stack Exchange. – Chris S Dec 14 '12 at 19:30
@ChrisS I'm sure his answer is not completely correct but it helped me to find my solution, I asked him to guide me more clearly on his answer by commenting on his answer but he didn't answered them and now I have answered my question by myself and shared my own solution. What else could I do, remove my question or live it be for the end of time unanswered for the people who may have the same question?! – Farid Rn Dec 14 '12 at 19:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.