Created
November 11, 2020 16:47
-
-
Save a7madev/7b26f3316bf7f00d99d5f554e7827696 to your computer and use it in GitHub Desktop.
Install MySQL 5.7 on macOS using Homebrew
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
## Installation | |
brew info mysql@5.7 | |
brew install mysql@5.7 | |
mysql_secure_installation | |
brew tap homebrew/services | |
brew services start mysql@5.7 | |
brew services run mysql@5.7 | |
brew services list | |
## Check Version | |
mysql -V | |
## Issues with mysql not found | |
brew link mysql@5.7 --force | |
## Changing Password | |
mysqladmin -u root password 'root' | |
## Issue: connection refused | |
1. Running `locate my.cnf` found the file `/usr/local/etc/my.cnf` | |
2. Edit that file and set `bind-address = 0.0.0.0` | |
3. Restart mysql: `brew services restart mysql@5.7` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/operatino/392614486ce4421063b9dece4dfe6c21