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 [email protected] | |
brew install [email protected] | |
mysql_secure_installation | |
brew tap homebrew/services | |
brew services start [email protected] | |
brew services run [email protected] | |
brew services list | |
## Check Version | |
mysql -V | |
## Issues with mysql not found | |
brew link [email protected] --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 [email protected]` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/operatino/392614486ce4421063b9dece4dfe6c21