Skip to content

Instantly share code, notes, and snippets.

@mannysoft
Forked from ismaild/mysql_uninstall.txt
Created July 11, 2016 08:16
Show Gist options
  • Select an option

  • Save mannysoft/2c2ebcfc1083e46b55c1e371f852ceee to your computer and use it in GitHub Desktop.

Select an option

Save mannysoft/2c2ebcfc1083e46b55c1e371f852ceee 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