1. ubuntu
wget http://dev.mysql.com/get/mysql-apt-config_0.3.2-1ubuntu14.04_all.deb
sudo dpkg -i mysql-apt-config_0.3.2-1ubuntu14.04_all.deb
sudo apt-get update
sudo apt-get install mysql-server-5.7
$ mysql --version
mysql Ver 14.14 Distrib 5.7.8-rc, for Linux (x86_64) using EditLine wrapper
2. Mac
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.