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