ERROR
Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/j/Library/LaunchAgents/homebrew.mxcl.mariadb.plist` exited with 5.
MariaDB를 설치하고 실행 하는데 위와 같은 오류가 났다.
이전에 시도 했던 방법들은 아래와 같다.
- MariaDB Restart 하기 -> Restart 하면 잠깐 MariaDB가 started상태로 들어가고 이후에 바로 stopped상태로 자동 변경 되었다.
- 기존에 깔려 있던 MySQL과의 충돌이 문제라 생각하여 관련 MySQL관련 폴더 삭제 후 MariaDB 재설치하기
https://bsscl.tistory.com/128
위 방법들을 시도해도 같은 에러가 떴고 결국 Homebrew를 통째로 삭제 후 다시 설치하기로 결정했다. 기존 DB에 중요한 정보는 없어 따로 백업을 하진 않았다.
Solve
Homebrew 삭제
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Homebrew 관련 폴더 삭제
sudo rm -rf /opt/homebrew
Homebrew 설치
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
MariaDB 설치
brew install mariadb
설치 후 초기 root 계정 password 설정
sudo mysql -u root 를 통해 접속.
-> USE mysql
-> SELECT User, Host, plugin FROM mysql.user;
->ALTER user 'root'@'localhost' identified by '설정할 비밀번호';
'DataBase > MariaDB' 카테고리의 다른 글
MariaDB를 왜? (0) | 2024.04.13 |
---|