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 [email protected]
brew unlink mysql
Run ONLY first or second command Since [email protected] is keg-only, first step could be by-passed by adding a path to [email protected] in PATH variable like second command
brew link [email protected] --force
echo 'export PATH="/usr/local/opt/[email protected]/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