1
votes

I have a requirement for MySQL 5.5, and the box is a CentOS 6.4 64-bit VM.

MySQL 5.1.69 is installed, and won't let me install any of the RPMs from the 5.5 RPMs..

  • MySQL-client-5.5.32-1.el6.x86_64.rpm
  • MySQL-devel-5.5.32-1.el6.x86_64.rpm
  • MySQL-embedded-5.5.32-1.el6.x86_64.rpm
  • MySQL-server-5.5.32-1.el6.x86_64.rpm
  • MySQL-shared-5.5.32-1.el6.x86_64.rpm
  • MySQL-shared-compat-5.5.32-1.el6.x86_64.rpm
  • MySQL-test-5.5.32-1.el6.x86_64.rpm

So I run yum -y remove mysql and then try to install the newer version. I first of all run

  • rpm -ivh MySQL-shared-5.5.32-1.el6.x86_64.rpm
  • rpm -ivh MySQL-shared-compat-5.5.32-1.el6.x86_64.rpm

So far so good. I then try to install the server.

rpm -ivh MySQL-server-5.5.32-1.el6.x86_64.rpm

And I get this..

file /usr/share/mysql/romanian/errmsg.sys from install of MySQL-server-5.5.32-1.el6.x86_64 conflicts with file from package mysql-libs-5.1.69-1.el6_4.x86_64

... and so on. If I google some of those errors, I get this page from StackOverflow..

Installing mysql-libs on server with MySQL-Server5.5

.. but if I look at the advice, it says to install the MySQL-shared-compat-5.5.32-2.el6.x86_64.rpm. But it's already installed. :(

Any advice would be welcome. Thank you.

2
Check this answer to almost duplicate questionjgb

2 Answers

2
votes

One way is to install all the RPMs at the same time with yum install MySQL*.rpm, which ideally should take care of all package dependencies and upgrades.

You can also get around this problem by using the --replacefiles option to RPM:

rpm -ivh --replacefiles MySQL-server-5.5.32-1.el6.x86_64.rpm

That uses the error message language files from the server package to overwrite those in the 5.1 version that comes with CentOS.

0
votes

Had this issue with webtatic repository. Using remi, epel and rpmforge repository saved me the trouble.

Here is the link I referred : Cent OS 6.4, Php 5.4, Mysql 5.5 - HowTo