Home >Database >Mysql Tutorial >mac下mysql卸载方法_MySQL

mac下mysql卸载方法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:18:32978browse

mysql卸载

mac下mysql的DMG格式安装内有安装文件,却没有卸载文件……很郁闷的事。

  网上搜了一下,发现给的方法原来得手动去删。

  很多文章记述要删的文件不完整,后来在stackoverflow 这里发现了一个遗漏的地方,所以将完整版记述在这里,以供查阅。

  先停止所有mysql有关进程。 打开控制台:

  sudo rm /usr/local/mysql

  sudo rm -rf /usr/local/mysql*

  sudo rm -rf /Library/StartupItems/MySQLCOM

  sudo rm -rf /Library/PreferencePanes/My*

  vim /etc/hostconfig and removed the line MYSQLCOM=-YES-rm -rf ~/Library/PreferencePanes/My*

  sudo rm -rf /Library/Receipts/mysql*

  sudo rm -rf /Library/Receipts/MySQL*

  sudo rm -rf /var/db/receipts/com.mysql.* 最后这条很多文章都丢了,切记切记。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn