Skip to content

Instantly share code, notes, and snippets.

@coderxin
Created November 29, 2022 16:14
Show Gist options
  • Save coderxin/f3a25ef29a1e5a6676a69f12d76d8a45 to your computer and use it in GitHub Desktop.
Save coderxin/f3a25ef29a1e5a6676a69f12d76d8a45 to your computer and use it in GitHub Desktop.
How to reinstall broken MySQL (with brew)
brew services stop mysql@5.7
brew remove mysql@5.7
brew cleanup
rm -rf /opt/homebrew/Cellar/mysql@5.7
rm -rf /opt/homebrew/var/mysql
rm /opt/homebrew/etc/my.cnf.default
rm /opt/homebrew/etc/my.cnf
brew install mysql@5.7
brew services restart mysql@5.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment