Skip to content

Instantly share code, notes, and snippets.

@a7madev
Created November 11, 2020 16:47
Show Gist options
  • 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 [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