Skip to content

Instantly share code, notes, and snippets.

@mackjoner
Forked from ismaild/mysql_uninstall.txt
Created March 28, 2016 02:19
Show Gist options
  • Save mackjoner/a3f2fed4274106aae3af to your computer and use it in GitHub Desktop.
Save mackjoner/a3f2fed4274106aae3af 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