Created
October 10, 2018 08:16
-
-
Save raditotev/6fe9dac5be1b974eb12b823aad3b5d0b to your computer and use it in GitHub Desktop.
Switching mysql version with Home Brew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List available versions | |
$brew search mysql | |
# Install required version | |
$brew install mysql@5.6 | |
# List running services | |
$brew services list | |
# Stop if mysql service is running | |
$brew services stop mysql | |
# Unlink current mysql | |
$brew unlink mysql | |
# Link desired version | |
$brew link mysql@5.6 --force | |
# Start desired version | |
$brew services start mysql@5.6 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment