如何在 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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 21:46:15  来源:igfitidea点击:

How do I update MySQL installed with Homebrew on a Mac

mysqlmacoshomebrew

提问by Ricardo Gomes

I've installed MySQL on a Mac via brew.

我已经通过brew.

I do constant brewupdates but MySQL keeps telling me it has a new version.

我不断brew更新,但 MySQL 一直告诉我它有一个新版本。

Does brew updatenot update MySQL?

难道brew update不更新的MySQL?

If so then how should I do it? Manually?

如果是这样,那么我该怎么做?手动?

回答by R. Hatherall

No, brew updateonly updates Homebrew itself including retrieving the latest list of formulas/packages available.

不,brew update只更新 Homebrew 本身,包括检索可用的公式/包的最新列表。

Once you have ran brew updateyou can then upgrade all formulas/packages using:

运行后,brew update您可以使用以下方法升级所有公式/包:

brew upgrade

To upgrade a particular package you can use the brew upgradecommand 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.

注意始终记得阅读输出的安装/升级后说明。有些软件包在安装/升级后需要手动步骤,例如主要数据库版本升级通常需要运行数据升级/迁移过程。