首页 > 数据库技术 > 详细

在mac本上删除mysql

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!