1、 添加rpm源
[root@k8s-master ~]# rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm
2、通过yum搜索
[root@test1 ~]# yum search mysql-community
3、导入秘钥
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
4、安装x64位的 mysql客户端
[root@test1 ~]# yum install mysql-community-client.x86_64 -y