1. add mysql 5.7 rpm repo source
rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
2. search mysql in the yum repo
yum search mysql-community
output:
[lenmom@bigdata-01 fe]$ yum search mysql-community Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.cn99.com * extras: mirrors.aliyun.com * updates: mirrors.cn99.com base | 3.6 kB 00:00:00 docker-ce-stable | 3.5 kB 00:00:00 extras | 2.9 kB 00:00:00 kubernetes | 1.4 kB 00:00:00 mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql57-community | 2.5 kB 00:00:00 updates | 2.9 kB 00:00:00 (1/4): kubernetes/primary | 77 kB 00:00:00 (2/4): mysql-connectors-community/x86_64/primary_db | 62 kB 00:00:00 (3/4): mysql-tools-community/x86_64/primary_db | 76 kB 00:00:00 (4/4): mysql57-community/x86_64/primary_db | 224 kB 00:00:00 kubernetes 561/561 ============================================================================= N/S matched: mysql-community ============================================================================== mysql-community-client.i686 : MySQL database client applications and tools mysql-community-client.x86_64 : MySQL database client applications and tools mysql-community-common.i686 : MySQL database common files for server and client libs mysql-community-common.x86_64 : MySQL database common files for server and client libs mysql-community-devel.i686 : Development header files and libraries for MySQL database client applications mysql-community-devel.x86_64 : Development header files and libraries for MySQL database client applications mysql-community-embedded.i686 : MySQL embedded library mysql-community-embedded.x86_64 : MySQL embedded library mysql-community-embedded-compat.i686 : MySQL embedded compat library mysql-community-embedded-compat.x86_64 : MySQL embedded compat library mysql-community-embedded-devel.i686 : Development header files and libraries for MySQL as an embeddable library mysql-community-embedded-devel.x86_64 : Development header files and libraries for MySQL as an embeddable library mysql-community-libs.i686 : Shared libraries for MySQL database client applications mysql-community-libs.x86_64 : Shared libraries for MySQL database client applications mysql-community-libs-compat.i686 : Shared compat libraries for MySQL 5.6.25 database client applications mysql-community-libs-compat.x86_64 : Shared compat libraries for MySQL 5.6.45 database client applications mysql-community-release.noarch : MySQL repository configuration for yum mysql-community-server.x86_64 : A very fast and reliable SQL database server mysql-community-test.x86_64 : Test suite for the MySQL database server Name and summary matches only, use "search all" for everything.
3. install mysql 5.7 client
yum install -y mysql-community-client.x86_64