有没有办法只安装mysql客户端(Linux)?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5287220/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-04 00:30:26  来源:igfitidea点击:

Is there a way to only install the mysql client (Linux)?

mysqllinuxclient

提问by emilebaizel

Are there are any Linux mysql command line tools that don't require the entire mysql db installation package to be installed?

是否有任何不需要安装整个 mysql db 安装包的 Linux mysql 命令行工具?

What I'm trying to do is from server #1 (app server), execute mysql commands that will get executed on server #2 (db server). I do not want to run the db on the local server or to install the full blown mysql db.

我想要做的是从服务器#1(应用程序服务器),执行将在服务器#2(数据库服务器)上执行的 mysql 命令。我不想在本地服务器上运行数据库或安装完整的 mysql 数据库。

回答by Jon Black

at a guess:

猜测:

sudo apt-get install mysql-client

回答by Hector Magana

To install only mysql (client) you should execute

要仅安装 mysql(客户端),您应该执行

yum install mysql

To install mysql client and mysql server:

要安装 mysql 客户端和 mysql 服务器:

yum install mysql mysql-server

回答by xdebug

sudo apt-get install mysql-client-core-5.5

回答by employeebrian

Maybe try this:

也许试试这个:

yum -y groupinstall "MYSQL Database Client"

回答by wagnermarques

[root@localhost administrador]# yum search mysql | grep client
community-mysql.i686 : MySQL client programs and shared libraries
                            : client
community-mysql-libs.i686 : The shared libraries required for MySQL clients
root-sql-mysql.i686 : MySQL client plugin for ROOT
mariadb-libs.i686 : The shared libraries required for MariaDB/MySQL clients
[root@localhost administrador]# yum install  -y community-mysql