码迷,mamicode.com
首页 > 数据库 > 详细

在mac本上删除mysql

时间:2014-08-24 20:45:02      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:os   strong   for   ar   art   div   line   sp   ad   

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:

  1. Open Terminal
  2. sudo nano /etc/hostconfig
  3. Enter your password if you’re not authed yet.
  4. Delete the following line: “MYSQLCOM=-YES-”
  5. 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.

  1. 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

标签:os   strong   for   ar   art   div   line   sp   ad   

原文地址:http://www.cnblogs.com/chenshuo/p/3933317.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!