기존에 오라클을 통해서 맥에 MySQL을 설치하는 방법을 알아봤습니다. 하지만 Homebrew를 통해서 설치하는 방법도 있어서 기록합니다. 설치가 더 간단하고 설정이 편하다는 장점이 있습니다. 맥을 사용하는 사람들은 아마 Homebrew에 대해서 들어보신 적이 있을 텐데요. Homebrew는 맥의 패키지 관리 툴입니다.
홈브루 확인 및 설치
▼ Homebrew가 설치되어 있는지 확인합니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▼만약 homebrew가 설치되어 있지 않다면 아래 명령을 입력해서 Homebrew를 설치합니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
▼ search 명령으로 검색해서 설치하거나 다음과 같이 그냥 mysql이라고 입력할 경우 최신 버전을 설치하게 됩니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Would you like to setup VALIDATE PASSWORD component ?
패스워드를 복잡하게 설정할지를 묻습니다. 저 같은 경우는 테스트용로 사용할 생각이라서 NO로 했습니다. 만약 YES로 하게 되면 비밀번호 규칙이 생겨서 대소문자 및 특수기호를 포함해야 하기 때문에 귀찮아집니다.
y 또는 n을 입력했다면 이제 비밀번호를 설정합니다. 원하는 패스워드를 2회 입력합니다.
2. Remove anonymous users?
익명 사용자를 제거할 지 묻습니다. 저는 NO로 설정했습니다.
3. Disallow root login remotely ?
루트 사용자의 원격접속을 허용하겠냐는 질문입니다. 보통 루트 사용자는 원격 허용을 하지 않는 것이 좋습니다. NO라고 입력합니다.
4. Remove test database and access to it ?
테스트 데이터 베이스를 삭제할지 묻습니다. 저는 YES로 입력했습니다.
5. Reload privilege tables now ?
변경된 테이블 권한을 리로드 할 것인지 묻습니다. YES로 입력합니다.
MySQL 서버 접속
▼ 다음 명령어를 통해서 MySQL에 접속합니다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters