맥 mysql 실행 에러 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Peter·2022년 10월 7일
0

부스트코스 웹 백엔드 과정 수강신청하고 mysql실습 하려고 homebrew로 설치 했으나 오류 떠서 계속 붙잡고 삽질하고 있다.

mysql --verbose --help | grep my.cnf

위 명령어로 my.cnf 위치 찾기

vi my.cnf 로 열어준다    

ps -ef | grep mysql

which mysql로 mysql 위치 확인

Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/macbookpro/Library/LaunchAgents/homebrew.mxcl.mysql.plist` exited with 5.

나보고 어쩌라는 거야ㅠㅠ

launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist


안된다...

미치겠다

삭제하고 재설치 했지만

. ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/GMs-MacBook-Pro.local.pid).

모르겠어유

profile
개발자 지망생. 일단 하고보자

0개의 댓글