Skip to content

Instantly share code, notes, and snippets.

@ismaild
Last active March 13, 2017 14:54
Show Gist options
  • Save ismaild/6350402 to your computer and use it in GitHub Desktop.
Save ismaild/6350402 to your computer and use it in GitHub Desktop.
uninstall mysql, Mac OSX
1. Backup any databases you have using mysqldump
2. Stop MySQL using the pref panel
3. Open Terminal and type in the following commands
4. sudo rm /usr/local/mysql
5. sudo rm -rf /usr/local/mysql*
6. sudo rm -rf /Library/StartupItems/MySQLCOM
7. sudo rm -rf /Library/PreferencePanes/My*
8. edit /etc/hostconfig and remove the line MYSQLCOM=-YES- (May not be necessary)
9. rm -rf ~/Library/PreferencePanes/My*
10. sudo rm -rf /Library/Receipts/mysql*
11. sudo rm -rf /Library/Receipts/MySQL*
12. sudo rm -rf /private/var/db/receipts/*mysql*
Once done.... then
brew install mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment