Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I update MySQL installed with Homebrew on a Mac

Tags:

I've installed MySQL on a Mac via brew.

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

Does brew update not update MySQL?

If so then how should I do it? Manually?

like image 870
Ricardo Gomes Avatar asked May 06 '16 09:05

Ricardo Gomes


People also ask

Where is MySQL after installed on Mac?

By default, the MySQL directories are installed under /usr/local/ . Even better, add /usr/local/mysql/bin to your PATH environment variable. You can do this by modifying the appropriate startup file for your shell. For more information, see Invoking MySQL Programs.


1 Answers

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

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

brew upgrade 

To upgrade a particular package you can use the brew upgrade command like:

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.

like image 155
R. Hatherall Avatar answered Sep 27 '22 17:09

R. Hatherall