How to uninstall MySQL under Mac

There are installation files in the DMG format installation of mysql under mac, but there are no uninstall files... It's very depressing.
I searched online and found that the method given originally had to be deleted manually.
Many articles describe the incomplete files to be deleted, and later found an omission here on stackoverflow, so the full version is described here for reference.
Stop all mysql related processes first.

quote
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
vim /etc/hostconfig  (and removed the line MYSQLCOM=-YES-)
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326995224&siteId=291194637