Home  >  Article  >  Database  >  How to uninstall mysql on mac?

How to uninstall mysql on mac?

藏色散人
藏色散人Original
2019-05-07 13:22:2811409browse

How to uninstall mysql on mac?

After installing MySQL on Mac, there was a problem that it could not be started. After many attempts, the problem still could not be solved, so I had to delete it in the end.

How to delete MySQL under Mac? You only need to execute the following command in the terminal to completely delete MySQL under Mac.

Open Terminal:

Finder->Applications->Utilities->Terminal.

How to uninstall mysql on mac?

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

Related learning recommendations: mysql tutorial(video)

The above is the detailed content of How to uninstall mysql on mac?. For more information, please follow other related articles on the PHP Chinese website!

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