Removing mysql from your Mac OS X

After a few tries in removing mysql 6.0 alpha (!) I found two useful sites with great answers.
Here they are:

1. http://tomkeur.net/39/how-to-remove-mysql-completely-mac-os-x-leopard.html

2. http://stackoverflow.com/questions/1431823/how-to-remove-installation-of-mysql-on-mac-os-x

Here are the extracts from these sites:

First step: host config
1.1. Open Terminal
1.2. sudo nano /etc/hostconfig
1.3. Enter your password if you’re not authed yet.
1.4. Delete the following line: “MYSQLCOM=-YES-”
1.5. CTRL+X (This is the command for closing NANO, Enter the “Y” key to save the file and exit nano).

Second step: removing folders

Make sure MySQL is not running.

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm /etc/my.cnf

This first part didn’t work for me… so I found the next thing:

sudo rm -rf /var/db/receipts/com.mysql.*

Voila!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s