zsh: command not found: mysql

다은·2021년 5월 2일
0

🍎 Mac

목록 보기
1/2

맥에서 mysql 서버를 실행시키려면
터미널에서 mysql.server start 명령어를 보내야 하는데

zsh: command not found: mysql 에러가 뜰 때가 있다.

1. homebrew 설치

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

설치가 완료되면 아래와 같은 메시지가 뜬다.

Add Homebrew to your PATH in /Users/daeun/.zprofile:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/daeun/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

/Users/daeun 경로에서 .zprofile 폴더를 생성한 후 echo 명령어를 보내면 된다.

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/daeun/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"

2. mysql 설치

brew install mysql

다시 mysql.server start 명령어를 날려보면 성공한다.

profile
천방지축 어리둥절 빙글빙글

0개의 댓글