Created
November 29, 2022 16:14
-
-
Save coderxin/f3a25ef29a1e5a6676a69f12d76d8a45 to your computer and use it in GitHub Desktop.
How to reinstall broken MySQL (with brew)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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