I'm trying to get MySql 5.7 installed on a Centos 6.9 system. I've been following instructions here:

I've downloaded this rpm:


and installed it with this command:

rpm -Uvh mysql57-community-release-el6.rpm

But, at this point, it's not really installed. This command:

rpm -qa | grep mysql

shows this:


And, if I type "mysql", nothing happens. I think there are dependencies that need to be downloaded.

If I edit this file: /etc/yum.repos.d/mysql-community.repo,

I see this

name=MySQL Connectors Community

(among others). I manually changed the 7 to 6.

Finally, when I type this:

yum install mysql-community-server

I get this result:

--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.7.22-1.el7.x86_64 (mysql57-community)
           Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.7.22-1.el7.x86_64 (mysql57-community)
           Requires: systemd
Error: Package: mysql-community-libs-5.7.22-1.el7.x86_64 (mysql57-community)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mysql-community-client-5.7.22-1.el7.x86_64 (mysql57-community)
           Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mysql-community-server-5.7.22-1.el7.x86_64 (mysql57-community)
           Requires: libsasl2.so.3()(64bit)

So, it's somehow retaining the e7 dependencies, possibly from a previous install gone wrong. How do I get it to download the correct dependencies?

edit: Per the suggest duplicate, I tried:

yum remove "mysql56-community-release-el7.*"

I also removed the mysql package by this:

rpm -qa | grep mysql

and got response:

  mysql57-community-release.noarch 0:el6-

But when I try a re-install, it comes up with the same message.

Also, per the comments from the OP, I previously edited


to only choose the correct edition, but the install is still trying to load the wrong dependencies.

Your Answer

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

Browse other questions tagged or ask your own question.