Mac用戶如果想要卸載MySQL數(shù)據(jù)庫,可以按照以下步驟進行操作:
1. 停止MySQL服務(wù) sudo /usr/local/mysql/support-files/mysql.server stop 2. 移除MySQL sudo rm /usr/local/mysql sudo rm -rf /usr/local/var/mysql sudo rm -rf /usr/local/mysql* sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist sudo rm -rf /Library/StartupItems/MySQLCOM sudo rm -rf /Library/PreferencePanes/MySQL* 3. 移除MySQL自啟動 sudo rm -rf /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist 4. 移除MySQL配置文件 sudo rm -rf /etc/my.cnf
通過以上步驟,Mac上的MySQL數(shù)據(jù)庫就可以被完全卸載掉了。