mac에서 mariadb를 설치해서 사용하다가 mysql 을 깔면 실행이 되지 않는 오류를 마주하게 된다.
brew services start mysql이라고 하면
brew services list 라고 했을 때
mysql stopped라고 되어서, 접속이 안되는 것이다.
여러가지 방법을 시도해보았지만 결국 내가 선택한 방법은
아래 경로에서 모든 mysql 관련 파일을 삭제하고 다시
brew install mysql
을 하는 것이다.
opt/homebrew/opt/mysql 삭제
opt/homebrew/var/homebrew/linked/mysql
opt/homebrew/lib/mysqlrouter
opt/homebrew/bin/mysql*
opt/homebrew /Cellar/mysql
opt/homebrew/share/mysql
opt/homebrew/core/mysql
opt/homebrew/var/mysql 삭제