(homebrew 설치가 되어있다는 가정하에 설명하겠습니다)
인텔칩이라면
brew install mysql
m1칩 설치
arch -arm64 brew install mysql
명령어를 입력해서 설치해줍니다.
그 다음
mysql.server start
을 입력하면
Starting MySQL
. SUCCESS! 가 뜹니다
그 다음
mysql_secure_installation
입력하면 비밀번호 세팅을 하게 되고
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1
Low : 0, Medium : 1, Strong : 2 중에 선택하여 비밀번호 설정을 해줍니다
*주의 ! *
정책에 맞지 않게 비밀번호를 설정하면
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
위의 질문에 y를 하던 n을 하던 계속하여
... Failed! Error: Your password does not satisfy the current policy requirements
이렇게 실패 에러가 나옵니다..... 각 단계에 맞는 비밀번호를 잘 설정해야 합니다.
그 뒤에 나오는
Remove anonymous users?
Disallow root login remotely?
Remove test database and access to it?
Reload privilege tables now?
질문에 y을 해주고 나면,
All done! 이 뜹니다 -> 성공 !!
그 다음 실행할 때,
mysql -u root -p
입력한 뒤 비밀번호를 입력하면
이렇게 잘 실행이 되는 것을 볼 수 있습니다!!
'서버' 카테고리의 다른 글
[Docker] Mac M1 docker 설치 (0) | 2022.12.14 |
---|---|
[MySQL] M1 Max mysql 설치시 Cannot install under Rosetta 2 in ARM default prefix 해결 (0) | 2022.12.02 |