【问题标题】:Uninstall MySQL without removing HHVM on Laravel Forge在 Laravel Forge 上卸载 MySQL 而不删除 HHVM
【发布时间】:2015-07-30 19:26:31
【问题描述】:

由于我分别维护数据库和 Web 服务器,我希望我的 Forge 维护的 Web 服务器不使用 mysql,因为它倾向于使用 很多 内存,即使我不使用它。

尝试运行sudo apt-get --purge remove mysql-client mysql-server mysql-common 将导致以下输出:

Reading package lists... Done Building dependency tree
Reading state information... Done Package 'mysql-server' is not installed, so not removed The following packages were automatically installed and are no longer required: ghostscript gsfonts imagemagick-common libaio1 libavahi-client3 libavahi-common-data libavahi-common3 libboost-context1.54.0 libboost-filesystem1.54.0 libboost-program-options1.54.0 libboost-regex1.54.0 libboost-system1.54.0 libboost-thread1.54.0 libcups2 libcupsfilters1 libcupsimage2 libdbi-perl libfftw3-double3 libgflags2 libgoogle-glog0 libgs9 libgs9-common libijs-0.35 libjasper1 libjbig2dec0 libjemalloc1 liblcms2-2 liblqr-1-0 libmagickcore5 libmagickwand5 libmemcached10 libpaper-utils libpaper1 libtbb2 libterm-readkey-perl libunwind8 linux-headers-3.13.0-52 linux-headers-3.13.0-52-generic linux-image-3.13.0-52-generic linux-image-extra-3.13.0-52-generic mysql-client-core-5.6 mysql-server-core-5.6 poppler-data Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: hhvm libdbd-mysql-perl libmysqlclient18 mysql-client-5.6 mysql-common mysql-common-5.6 mysql-server-5.6 0 upgraded, 0 newly installed, 7 to remove and 4 not upgraded. After this operation, 113 MB disk space will be freed. Do you want to continue? [Y/n] n Abort.

如您所见,我要求删除 mysql,但它也会删除我想保留的 hhvm!有什么方法可以实现吗?

【问题讨论】:

  • 这可能会更好地发布在superuser.comunix.stackexchange.com
  • @AndyJoiner 这是真的。最好的行动方案是什么?删除此问题并将其发布到那里或者有没有办法正确移动它?
  • “如果您发现您在错误的网站上发帖,只需删除您的问题并在正确的网站上发帖” - meta.stackexchange.com/a/5754/178156

标签: php mysql ubuntu hhvm laravel-forge


【解决方案1】:

HHVM 的 mysql 客户端和其他 mysql 功能(您几乎肯定想要)依赖于您试图删除的 mysql 客户端库。 sudo apt-get remove mysql-server 应该可以工作并删除 mysql 服务器,同时保留 HHVM 需要的客户端库完整。

【讨论】:

  • 其实是说mysql-server没有安装。
  • 其实没关系,只是安装的包是“mysql-server-5.6”。傻我!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-05-08
  • 2014-04-04
  • 2013-12-10
  • 2011-11-23
相关资源
最近更新 更多