1

These are the steps, that I followed:

  1. cd /etc/yum.repos.d # go to repositories
  2. rpm -qf mysql-community.repo # get the name of old repositories to delete
  3. yum remove mysql57-community-release # it is 5.7, but I was unable to install it
  4. wget http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm # download it again for my Centos 6.6
  5. yum localinstall mysql57-community-release-el6-7.noarch.rpm # install it
  6. yum repolist enabled | grep "mysql.*-community.*" # check that we have fresh versions, yes it's ok, I see mysql57-community
  7. yum install mysql-community-server

The last step does not work. When I run this command, I see that for some incredibly insane reason CentOS tries to install mysql57-community-release-el7-7.noarch.rpm which is of course not compatible with CentOS 6.6. and therefore installation procedure fails. Why is that? Why does it take incorrect version, that I've not even downloaded??? And how to fix it? Thanks!!

EDIT

enter image description here

  • Show the complete output. – Michael Hampton Dec 6 '15 at 18:27
  • It is impossible, because I do it on a remote server through ssh and the console language is not English – Jacobian Dec 6 '15 at 18:28
  • If you could suggest how I can switch language to English and copy console output to some text file that would be great – Jacobian Dec 6 '15 at 18:28
  • What are you talking about? Just paste it in your question. – Michael Hampton Dec 6 '15 at 18:33
  • Just copy and paste the text, the image is unreadable. – user9517 Dec 6 '15 at 18:48
2

I think this is the problem:

You replaced the mysql57-community repo for EL7 with the one for EL6, but yum still has cached metadata for the EL7 repo. Try clearing the metadata:

yum clean metadata
  • Thank you, sir! Now I see that it works. You need to be a real guru to know all such secret mantras! Thanks! – Jacobian Dec 6 '15 at 18:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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