Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

Remove Home-Brew MySQL Completely from MacOS

45 sec read

>> Please do take backup all DB Before Deleted

MySQL service & Process Kill

Check MySQL running or not

brew services list

Brew Software Mysql Running check

if running then stop by brew services stop mysql_version
in my case brew services stop mysql@5.7

Also another way to check
ps -ax | grep mysql
If found then Stop and kill any MySQL processes

Remove MySQL

brew remove mysql_version
brew cleanup

In My Case

brew remove mysql@5.7
brew cleanup

Remove the Folder & Files & Preferences

Here tried to add all possible path & files, some of them may not found to delete but don’t worry they are safe

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/mysql*
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm ~/Library/LaunchDaemons/homebrew.mxcl.mysql.plist
sudo rm -rf /usr/local/bin/mysql
sudo rm -rf /usr/local/etc/my.cnf
sudo rm -rf /et/my.cnf
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*

To Possible Final Check all deleted or not

mysql -V
brew services list #to find mysql running or not
ps -ax | grep mysql #if still found please do restart machine

Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

A Full Guide to Make Mac Environment for any…

Mac is Shipped with some predefined tools for US PHP – will Depreciated in next MacOS release Apache You can check with Install Http...
Shuvankar Paul
6 min read

Install MySQL in MacOS with Brew | Run Multiple…

Home Brew MySQL install in Mac and run Multiple MySQL version with
Shuvankar Paul
5 min read

Leave a Reply

Your email address will not be published. Required fields are marked *