환경 체크
which mysql
mysql --version
brew list | grep mysql
brew services list | grep mysql
sudo mysql.server status
MySQL 완전 삭제(MacOS)
MySQL 프로세스 죽이기
brew services stop mysql
sudo launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
관련 파일 삭제하기
which mysql
brew uninstall --force mysql
sudo rm -rf /usr/local/mysql
sudo rm -rf /usr/local/bin/mysql
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/Cellar/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /tmp/mysql.sock.lock
sudo rm -rf /tmp/mysqlx.sock.lock
sudo rm -rf /tmp/mysql.sock
sudo rm -rf /tmp/mysqlx.sock
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
**완전 삭제한 이후 컴퓨터를 재부팅
MySQL 설치
brew install [email protected]
mysql.server start
mysql_secure_installation
mysql.server stop
환경 설정
echo $SHELL
nano ~/.zshrc
MySQL 이용
옵션
brew services start mysql
brew services stop mysql