centos7不安装服务器端只安装mysql客户端

我们经常需要在服务器直接连接一台mysql服务器

通常安装了mysql服务器则自动安装了客户端

有没有办法只安装客户端,而不安装服务端

仅安装MySQL客户端

添加rpm源

[root@k8s-master ~]# `rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm`
[root@test1 ~]#

通过yum搜索

[root@test1 ~]# `yum search mysql-community`
[root@test1 ~]#

安装x64位的 mysql客户端

[root@test1 ~]# `yum install mysql-community-client.x86_64 -y`

    A+
发布日期:2021年05月17日  所属分类:未分类