How do I uninstall MySQL on Mac OS X (Snow Leopard)?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping
--
Chapters
00:00 How Do I Uninstall Mysql On Mac Os X (Snow Leopard)?
00:35 Accepted Answer Score 19
01:48 Answer 2 Score 1
02:15 Answer 3 Score 2
02:29 Thank you
--
Full question
https://superuser.com/questions/129193/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #mac #osxsnowleopard #mysql #uninstall
#avk47
ACCEPTED ANSWER
Score 19
If you haven't yet rebooted your computer, the process could still be running. First, reboot.
Then if MySQL is still showing up after a reboot, from the Terminal, issue the following commands one at a time1:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
And using your text editor of choice:
- Edit
/etc/hostconfig
and remove the lineMYSQLCOM=-YES-
If you still cannot install or run a different version of MySQL, you might have to issue one last command in the Terminal2:
sudo rm -rf /var/db/receipts/com.mysql.mysql*
ANSWER 2
Score 2
Another option is to do the following
Run this
launchctl list|grep mysql
Make note of the name of the mysql process name
launchctl unload mysql-process-name-from-other-command.plist
This will stop the process without need to uninstall or restarting.
ANSWER 3
Score 1
You will need to kill the mysqld proccess in the Activity Monitor.
Then you will need to delete the following:
/usr/local/mysql
/usr/local/mysql-5.1.45-osx10.5-x86_64/
/Library/StartupItems/MySQLCOM/
/Library/PreferencePanes/MySQL.prefPane/
/Library/Receipts/mysql-5.1.45-osx10.5-x86_64.pkg/
/Library/Receipts/MySQLStartupItem.pkg/
Some of the folders with version numbers in them may be names different then what I have listed.
Also this Stackoverflow question may help: How do you uninstall MySQL from Mac OS X?