Skip to content

Instantly share code, notes, and snippets.

@a7madev
Created November 11, 2020 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a7madev/7b26f3316bf7f00d99d5f554e7827696 to your computer and use it in GitHub Desktop.
Save a7madev/7b26f3316bf7f00d99d5f554e7827696 to your computer and use it in GitHub Desktop.
Install MySQL 5.7 on macOS using Homebrew
## 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`
@a7madev
Copy link
Author

a7madev commented Nov 11, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment