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
.
我在Ubuntu服务器上安装mysqldump实用程序时遇到问题。我尝试使用apt-get install mysqldump,但我得到E:无法找到包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.
我试过谷歌搜索但无法找到任何有关mysqldump安装的质量信息。我偶然发现了像mysql-client-5.1这样的软件包或可能包含它的软件包。
But i am afraid it might somehow * 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?
但我担心它可能会以某种方式与现有的mysql安装发生冲突。由于我不是该主题的专家,因此我无法获得有关客户端软件包的足够信息,它们包含的内容以及它们是否会干扰。有人可以帮我找到合适的包,它是否在mysql之上,所以它不会干扰当前的安装?
1 个解决方案
#1
23
mysqldump is part of the package mysql-client and can be installed with:
mysqldump是mysql-client包的一部分,可以安装:
sudo apt-get install mysql-client
This will install the default version, often there are packages for other MySQL versions, e.g. mysql-client-5.5. The generic version should be suitable in most cases.
这将安装默认版本,通常有其他MySQL版本的软件包,例如MySQL的客户端 - 5.5。在大多数情况下,通用版本应该是合适的。
#1
23
mysqldump is part of the package mysql-client and can be installed with:
mysqldump是mysql-client包的一部分,可以安装:
sudo apt-get install mysql-client
This will install the default version, often there are packages for other MySQL versions, e.g. mysql-client-5.5. The generic version should be suitable in most cases.
这将安装默认版本,通常有其他MySQL版本的软件包,例如MySQL的客户端 - 5.5。在大多数情况下,通用版本应该是合适的。