如何在Mac上更新使用Homebrew安装的MySQL

时间:2022-08-01 07:12:33

I've installed MySQL on a Mac via brew.

我通过brew在Mac上安装了MySQL。

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

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

Does brew update not update MySQL?

brew更新不会更新MySQL吗?

If so then how should I do it? Manually?

如果是的话那我该怎么办呢?手动?

1 个解决方案

#1


22  

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

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

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

运行brew更新后,您可以使用以下命令升级所有公式/包:

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

NOTE always 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.

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

#1


22  

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

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

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

运行brew更新后,您可以使用以下命令升级所有公式/包:

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

NOTE always 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.

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