zoukankan      html  css  js  c++  java
  • 在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:

    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.

  • 相关阅读:
    MCU开发之I2C通信
    hibernate特殊的映射
    Hibernate使用
    css设置让a标签充满整个li
    margin
    border属性
    列表
    链接样式
    相机内参外参
    tmux
  • 原文地址:https://www.cnblogs.com/chenshuo/p/3933317.html
Copyright © 2011-2022 走看看