Last active
March 13, 2017 14:54
-
-
Save ismaild/6350402 to your computer and use it in GitHub Desktop.
uninstall mysql, Mac OSX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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