如何在 Mac 上更新使用 Homebrew 安装的 MySQL
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37068549/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I update MySQL installed with Homebrew on a Mac
提问by Ricardo Gomes
I've installed MySQL on a Mac via brew
.
我已经通过brew
.
I do constant brew
updates but MySQL keeps telling me it has a new version.
我不断brew
更新,但 MySQL 一直告诉我它有一个新版本。
Does brew update
not update MySQL?
难道brew update
不更新的MySQL?
If so then how should I do it? Manually?
如果是这样,那么我该怎么做?手动?
回答by R. Hatherall
No, brew update
only updates Homebrew itself including retrieving the latest list of formulas/packages available.
不,brew update
只更新 Homebrew 本身,包括检索可用的公式/包的最新列表。
Once you have ran brew update
you can then upgrade all formulas/packages using:
运行后,brew update
您可以使用以下方法升级所有公式/包:
brew upgrade
To upgrade a particular package you can use the brew upgrade
command like:
要升级特定软件包,您可以使用如下brew upgrade
命令:
brew upgrade mysql
Before running an upgrade you may want to know what can be or is going to be upgraded using the command:
在运行升级之前,您可能想知道使用以下命令可以升级或将要升级的内容:
brew outdated
NOTEalways remember to read the post install/upgrade notes that are output. Some packages require manual steps post install/upgrade like major database version upgrades often require data upgrade/migration procedures to be run.
注意始终记得阅读输出的安装/升级后说明。有些软件包在安装/升级后需要手动步骤,例如主要数据库版本升级通常需要运行数据升级/迁移过程。