How can I install MySQL client in Ubuntu?

I have already installed MySQL 5.1 binary on server.

I am not able to find the right package for apt-get.

2 Answers 2



sudo apt-get install mysql-client

Or alternatively:

sudo apt-get install mysql\*

Commands like those worked for me when I installed it on my 11.04 system.

  • thnaks...... it worked for me with little modificaiton.sudo apt-get install mysql-client-core-5.1 Nov 28, 2012 at 13:03

The above has not worked for me. I installed MySQL client with the following ;

apt install mariadb-client-10.5

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .