我有一个 VPS,带有一个可以正常工作的 CMS(Ubuntu 14.04 LAMP)。CMS 运行正常,但我无法自动备份(rsnapshot 脚本调用 mysqldump),因为我在系统中找不到 mysqldump。
如果我输入 mysqldump 我会得到:
The program 'mysqldump' can be found in the following packages:
* mysql-client-5.5
* mariadb-client-5.5
* mysql-client-5.6
* percona-xtradb-cluster-client-5.5
Try: apt-get install <selected package>
如果我尝试安装 mysql-client 或 mysql-client-5.5(apt install mysql-client-5.5),我会得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client-5.5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mysql 服务器正常运行,但我无法安装 mysqldump
有什么建议吗?
谢谢
答案1
通过 taskel 卸载并重新安装 lamp 元包来解决
不幸的是,这导致了一点服务中断,幸运的是不到 2 分钟