Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Brandon-Lyons/b7ba9988f8ca9692b6d53cdcc38c52f0 to your computer and use it in GitHub Desktop.

Select an option

Save Brandon-Lyons/b7ba9988f8ca9692b6d53cdcc38c52f0 to your computer and use it in GitHub Desktop.
List of commands to fix possible mysql issues
brew services stop mysql
brew unlink mysql
brew uninstall mysql
rm -rf /usr/local/var/mysql
brew list
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MYSQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /usr/local/var/mysql*
brew update
brew doctor
brew search mysql
brew install mysql@5.7
brew link mysql@5.7 --force
ls /usr/local/Cellar
brew services start mysql@5.7
gem uninstall mysql2 && gem install mysql2
bundle install
bin/spring stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment