简体   繁体   中英

Install mysqldump on Ubuntu 14.04

I have trouble installing the mysqldump utility on a Ubuntu Server. I tried with apt-get install mysqldump but i get E: Unable to locate package mysqldump .

I tried googling but couldn't find any quality information of the installation of mysqldump. I stumbled upon packages like mysql-client-5.1 or thelike that might contain it.

But i am afraid it might somehow clash with the existing mysql installation. As i am no expert to the topic i wasn't able to gain enough information on the client packages, what they contain and if they will interfere. Can somebody help me find the right package and is it on top of mysql so it won't interfere with the current installation?

mysqldump is part of the package mysql-client and can be installed with:

sudo apt-get install mysql-client

This will install the default version, often there are packages for other MySQL versions, eg mysql-client-5.5. The generic version should be suitable in most cases.

sometimes apt-get wont get you the latest version, go to mysql site and download/unpack the mysql-community-client_ . .*-1ubuntu16.04_i386.deb to get the mysqldump of the version you want. For example : mysql-community-client_5.7.26-1ubuntu16.04_i386.deb

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM