简体   繁体   中英

Uninstall mysql on Lion?

Im currently using MAMP, but I installed the Mysql standalone before. So how can I uninstall that mysql and make sure it doesn't affect on the MAMP MySQL. Thanks.

Use the following list of commands to remove MySQL from OSX Lion :

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*
sudo rm -rf /var/db/receipts/com.mysql.*

Finally edit /etc/hostconfig and remove the line MYSQLCOM=-YES-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM