首页 > 代码库 > 在mac本上删除mysql
在mac本上删除mysql
The steps:
First you need to edit the file in: /etc/hostconfig and remove the line
Since this is a system file I advise you to open it with nano in terminal:
- Open Terminal
- sudo nano /etc/hostconfig
- Enter your password if you’re not authed yet.
- Delete the following line: “MYSQLCOM=-YES-”
- CTRL+X (This is the command for closing NANO, Enter the “Y” key to save the file and exit nano).
Second step:
Make sure MySQL is not running.
- Open Terminal and copy and paste and run the following commands:
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
MySQL is now removed from your MAC.
在mac本上删除mysql
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。