Skip to content

Instantly share code, notes, and snippets.

@zhhb
Forked from ismaild/mysql_uninstall.txt
Created March 25, 2016 04:18
Show Gist options
  • Select an option

  • Save zhhb/edcdab1242ca1c802f9f to your computer and use it in GitHub Desktop.

Select an option

Save zhhb/edcdab1242ca1c802f9f to your computer and use it in GitHub Desktop.

Revisions

  1. @ismaild ismaild revised this gist Aug 27, 2013. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion mysql_uninstall.txt
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,8 @@
    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*
    12. sudo rm -rf /private/var/db/receipts/*mysql*

    Once done.... then

    brew install mysql
  2. @ismaild ismaild created this gist Aug 27, 2013.
    12 changes: 12 additions & 0 deletions mysql_uninstall.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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*