[macOS] 맥미니 mysql@5.7 설치
설치 가능한 mysql 버전 확인$ brew search mysql mysql 설치$ brew install mysql@5.7 만약 최신 버전을 설치 하고 싶다면 버전을 빼면 된다.$ brew install mysql 2018.07.19 기준으로 8.0.11 이 설치 되는데 서버 구동에…
설치 가능한 mysql 버전 확인
$ brew search mysql
mysql 설치
$ brew install mysql@5.7
$ brew install mysql
$ echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.zshrc
mysql 시작
$ brew services start mysql@5.7
==> Successfully started `mysql@5.7` (label: homebrew.mxcl.mysql@5.7)
$ /usr/local/opt/mysql@5.7/bin/mysql.server start
Starting MySQL
SUCCESS!
password 변경
$ mysqladmin -u root password ''
mysql 접속
$ mysql -uroot
$ mysql -uroot -p
mysql 제거
$ brew remove mysql@5.7
기타
LDFLAGS: -L/usr/local/opt/mysql@5.7/lib
CPPFLAGS: -I/usr/local/opt/mysql@5.7/include 


