mysql.server start: anaconda와 꼬인 경로 문제 해결

anaconda 가상화 환경이 켜진 상태에서 mysql을 설치 및 서버 시작 했을때 문제 해결
Omar Qué tal's avatar
Aug 03, 2024
mysql.server start: anaconda와 꼬인 경로 문제 해결
 🐥 요약
mysql을 Anaconda가 설치된 mac(m1)에서 설치 후, mysql.server start 로 mysql 서버 실행 시도 중, The server quit without updating PID file 에러 발생.

아나콘다 가상화가 켜진 상태에서 sql 서버를 실행하면 어쩌구~ 경로 간섭이 발생한다고 함.

Anaconda 제거 및 응용프로그램에서 관련 경로들을 모두 삭제 후, homebrew로 mysql  제거 후 재설치

….Success
🐥 요약 mysqlAnaconda가 설치된 mac(m1)에서 설치 후, mysql.server start 로 mysql 서버 실행 시도 중, The server quit without updating PID file 에러 발생. 아나콘다 가상화가 켜진 상태에서 sql 서버를 실행하면 어쩌구~ 경로 간섭이 발생한다고 함. Anaconda 제거 및 응용프로그램에서 관련 경로들을 모두 삭제 후, homebrew로 mysql 제거 후 재설치 ….Success

발단

brew install mysql
터미널에서 homebrew로 mysql 설치
notion image
이어서,
mysql.server start
서버 실행 시도

Error

notion image
The server quit without updating PID file
 

시도

구글링 해보니, 디렉터로 소유권 문제라길래, 이것저것 따라해보고, 삭제-재설치도 여러차례 해봤는데 안 됨.
그러다, mysql PID 경로에 Anaconda가 껴있음을 발견
notion image
!!! anaconda3 ???
이상해서 검색 ㄱㄱ
notion image
아나콘다 가상환경을 꺼라!
conda deactivate
근데 실패!
 

해결

아나콘다 자체를 프로그램 제거 하고, 관련 디렉토리를 모두 삭제. 일부 디렉토리에서 mysql 관련 폴더 및 파일이 있었음.
그 후 다시 mysql 재설치 후 서버 스타트
notion image
SUCCESS!
 
Share article
RSSPowered by inblog