728x90
Mysql search
1. brew search mysql

Mysql 다운
2. brew install mysql

3. (에러 발생했을경우) brew install openssl
* Error 발생 이유 : homebrew update 문제 *
참고 : https://jinmay.github.io/2020/05/18/mysql/fix-error-installing-mysql-on-mac/
[mysql]macOS에서 brew로 mysql 설치할때 주의할 점
brew install 명령어를 통해 mysql을 설치할 때, 가끔 알 수 없는 에러가 발생할 때가 있다. openssl을 재설치해보고 git과 gcc 등을 다시 설치해보아도 해결 할 수 없었던 적이 있는데 생각외로 간단하게
jinmay.github.io

Mysql 다운
4. 다시 brew install mysql


Mysql 다운 확인
5. brew list로 다운로드가 되었는지 확인

Mysql server 실행
6. mysql.server start

Mysql 설정
7. mysql_secure_installation

7-1. VALIDATE PASSWORD 설정 여부
Would you like to setup VALIDATE PASSWORD component? Press y|Y for Yes, any other key for No: no
7-2. Anonymous Users 삭제 여부
Remove anonymous users? (Press y|Y for Yes, any other key for No) : no
7.3. 원격 IP 접속 허용 여부
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : yes
7-4. 기본 DB인 test 유지 여부
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : no
7-5. 변경된 설정 내역을 즉시 적용할 건지
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : yes
Mysql 접속
8. mysql -u root -p 위에서 설정했던 비밀번호 입력

9. mysql >
status 현 상태 확인

Mysql 종료
10. mysql>
exit

10. mysql.server stop

+ 추가
mysql-client casks의 mysqlworkbench 설치
11. brew install mysql-client

12. brew cask install mysqlworkbench 오류가 발생할 경우

13. brew install --cask mysqlworkbench 로 바꿔보자.


오류가 발생하는데 이유는 버전이 너무 높아서.. (참고하기)
https://archive-me-0329.tistory.com/10
M1 맥북에 MySQL Workbench 설치하기
수업에서는 학과 자체 리눅스 서버를 쓰기 때문에 workbench 를 쓸일은 없지만, 그래도 나중에 편하다고 해서 설치를 진행했다. 그런데 이게 무슨... 또 m1 칩의 장난인지 설치는 되었는데 보안을 해
archive-me-0329.tistory.com

