xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
brew doctor (see everything is ok)
- Install brew git
brew install mysql
brew search mysql (find mysql 5.7 package)
brew install mysql@5.7
brew unlink mysql
Run ONLY first or second command Since mysql@5.7 is keg-only, first step could be by-passed by adding a path to mysql@5.7 in PATH variable like second command
brew link mysql@5.7 --forceecho 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.bash_profile
Check mysql_secure_installation link is correct:
ls -l /usr/local/bin/mysql_secure_installation
Check mysql path is correct
ls -l /usr/local/bin/mysql
mysql_secure_installation
Check mysql version
mysql --version
Git clone <project_url> into your favorite folder