Mac上卸载MySQL

作者: wMeSlAx767 | 来源:发表于2018-04-09 15:37 被阅读90次

    前提:

    本文说明的MySQL是通过brew进行安装的。

    通过Homebrew安装MySQL

    brew install mysql

    卸载MySQL

    确保已经停止了MySQL的服务。

    1. 通过brew卸载MySQL

    brew remove mysql
    brew cleanup

    1. 删除相关文件

    sudo rm /usr/local/mysql
    sudo rm -rf /usr/local/mysql*
    sudo rm -fr /usr/local/var/mysql
    sudo rm -rf /Library/StartupItems/MySQLCOM
    sudo rm -rf /Library/PreferencePanes/My*
    edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
    rm -rf ~/Library/PreferencePanes/My*
    sudo rm -rf /Library/Receipts/mysql*
    sudo rm -rf /Library/Receipts/MySQL*
    sudo rm -rf /private/var/db/receipts/*mysql*

    引用:
    https://community.jaspersoft.com/wiki/uninstall-mysql-mac-os-x

    相关文章

      网友评论

        本文标题:Mac上卸载MySQL

        本文链接:https://www.haomeiwen.com/subject/kueihftx.html