새벽의 블로그
< MySQL > postinstall 에러 본문
brew install mysql@8.4
the post-install step did not complete successfully 경고
주어진 brew 명령어로 해결이 안 되는 상황
아마 이전 ~ 에러
ls -l /opt/homebrew/var/mysql/
MySQL 데이터 디렉토리는 /opt/homebrew/var/mysql/로 지정되어 있음.
이 디렉토리를 확인하고 초기화된 데이터가 남아 있는지 확인
--- stop 명령어 ---
ihyomin@ihyomin-ui-MacBookAir ~ % brew services stop mysql@8.4
Stopping `mysql@8.4`... (might take a while)
==> Successfully stopped `mysql@8.4` (label: homebrew.mxcl.mysql@8.4)
--- remove 명령어 ---
rm -rf /opt/homebrew/var/mysql/*
mysql stop 후, mysql 데이터 디렉토리에 있는 파일 제거
과정을 완료하니 계속 주의, 에러가 나던 postinstalling 성공
< reference>
TIL/mysql/MySQL-완전-삭제하고-재설치하기-(MacOS).md at master · rangyu/TIL
오늘 내가 배운 것 (Today I Learned). Contribute to rangyu/TIL development by creating an account on GitHub.
github.com
'Dev tools > Database_MySQL' 카테고리의 다른 글
< MySQL > 터미널 기본 brew 명령어 (0) | 2024.11.21 |
---|---|
< Mysql > JOIN, 프로그래머스 성분으로 구분한 아이스크림 총 주문량 (0) | 2024.10.29 |
< MySQL > IFNULL 함수 (0) | 2024.10.17 |