MySQL install on mac with Homebrew

hayden·2023년 5월 20일

홈브류 인스톨

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

에스큐엘 인스톨

$ brew install mysql
$ brew services start mysql
$ mysql_secure_installation

설치 후 brew services start mysql

mysql_secure_installation 입력
root 비밀번호를 설정.
validate_password 플러그인은 귀찮으니 비설치

로그인

$ mysql -h localhost -u root -p
profile
22.12.01 코딩공부기록저장소

0개의 댓글