Skip to content

Instantly share code, notes, and snippets.

Daniel Zilli dlzi

Block or report user

Report or block dlzi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dlzi
dlzi / remove-mysql-macos.md
Last active Nov 30, 2018
How to uninstall MySQL 5.7.2x on a macOS
View remove-mysql-macos.md

1. DO NOT forget to backup your data.
2. Stop the database server.

To uninstall MySQL and completely remove it (including all databases) from your Mac, do the following from the Terminal window:

rm -rf ~/Library/PreferencePanes/My*
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*

@dlzi
dlzi / remove-python-macos.md
Last active Nov 14, 2018
How to uninstall Python 3.x on a macOS
View remove-python-macos.md

1. DO NOT attempt to remove any Apple-supplied system Python which are in /System/Library and /usr/bin.
2. Multiple Python versions can coexist pacifically on macOS. So, uninstalling Python is purely optional.

To remove a different version, change 3.7 to the Python version you want to remove.

sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7
sudo rm -rf "/Applications/Python 3.7"
sudo find /usr/local/bin -lname '../../../Library/Frameworks/Python.framework/Versions/3.7/*' -delete

You can’t perform that action at this time.