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

emilebaizel picture emilebaizel · Mar 13, 2011 · Viewed 304.6k times · Source

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

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.

Answer

Hector Magana picture Hector Magana · Nov 13, 2012

To install only mysql (client) you should execute

yum install mysql

To install mysql client and mysql server:

yum install mysql mysql-server