How to Install Latest MySQL 5.7.9 on RHEL/CentOS 7/6/5 and Fedora 23/22/21

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

80 Responses

  1. DHANASEKAR PANCHATCHARAM says:

    I am trying to install MySQL 5.7 over RHEL v7. The sad part is, RHEL came with the pre-installed MariaDB binaries and it is not allowing to install the MySQL. Below is what I’m seeing whenever I try to install:

    [root@xxxxxxx mysql_binaries]# yum repolist enabled | grep “mysql.*-community.*”
    mysql-connectors-community/x86_64 MySQL Connectors Community 36
    mysql-tools-community/x86_64 MySQL Tools Community 47
    mysql57-community/x86_64 MySQL 5.7 Community Server 187
    [root@xxxxxxx mysql_binaries]#

    [root@xxxxxxx mysql_binaries]# yum install mysql-community-server
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    Resolving Dependencies
    –> Running transaction check
    —> Package mariadb-server.x86_64 1:5.5.52-1.el7 will be obsoleted
    –> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
    —> Package mysql-community-server.x86_64 0:5.7.18-1.el7 will be obsoleting
    –> Processing Dependency: mysql-community-common(x86-64) = 5.7.18-1.el7 for package: mysql-community-server-5.7.18-1.el7.x86_64
    –> Processing Dependency: mysql-community-client(x86-64) >= 5.7.9 for package: mysql-community-server-5.7.18-1.el7.x86_64
    –> Running transaction check
    —> Package mariadb.x86_64 1:5.5.52-1.el7 will be obsoleted
    —> Package mariadb-server.x86_64 1:5.5.52-1.el7 will be obsoleted
    –> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
    —> Package mysql-community-client.x86_64 0:5.7.18-1.el7 will be obsoleting
    –> Processing Dependency: mysql-community-libs(x86-64) >= 5.7.9 for package: mysql-community-client-5.7.18-1.el7.x86_64
    —> Package mysql-community-common.x86_64 0:5.7.18-1.el7 will be installed
    –> Running transaction check
    —> Package mariadb-libs.x86_64 1:5.5.52-1.el7 will be obsoleted
    –> Processing Dependency: libmysqlclient.so.18()(64bit) for package: perl-DBD-MySQL-4.023-5.el7.x86_64
    –> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
    –> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:net-snmp-5.7.2-24.el7_2.1.x86_64
    –> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 1:qt-mysql-4.8.5-13.el7.x86_64
    –> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: perl-DBD-MySQL-4.023-5.el7.x86_64
    –> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
    –> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 1:qt-mysql-4.8.5-13.el7.x86_64
    —> Package mariadb-server.x86_64 1:5.5.52-1.el7 will be obsoleted
    –> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
    —> Package mysql-community-libs.x86_64 0:5.7.18-1.el7 will be obsoleting
    –> Running transaction check
    —> Package mariadb-server.x86_64 1:5.5.52-1.el7 will be obsoleted
    –> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
    —> Package mysql-community-libs-compat.x86_64 0:5.7.18-1.el7 will be obsoleting
    –> Finished Dependency Resolution
    Error: Package: akonadi-mysql-1.9.2-4.el7.x86_64 (@anaconda/7.1)
    Requires: mariadb-server
    Removing: 1:mariadb-server-5.5.52-1.el7.x86_64 (@rhel-7-server-rpms)
    mariadb-server = 1:5.5.52-1.el7
    Obsoleted By: mysql-community-server-5.7.18-1.el7.x86_64 (mysql57-community)
    Not found
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    [root@xxxxxxx mysql_binaries]# yum update mysql-server
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
    No Match for argument: mysql-server
    No package mysql-server available.
    No packages marked for update
    [root@xxxxxxx mysql_binaries]#

  2. MHDH says:

    Thank you Man

  3. shankar says:

    Hi,

    Are there any compatibility issues with RHEL 7.2 OS for mysql installation?

  4. Aakash says:

    I followed your instructions to install Latest MySQL on my CentOS 7.2 all went well, but now how to login into MySQL server?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *