Reputation: 405
I want to completely remove MySQL from my mac (El Capitan).
I installed homebrew
and tried to remove MySQL, but I get the error:
Error: No such keg: /usr/local/Cellar/mysql
Upvotes: 7
Views: 13919
Reputation: 9407
Actually, by running
brew remove mysql
It is expecting a package called mysql and a corresponding folder in /usr/local/Cellar
. But if you installed a specific version of mysql such as [email protected], then that is what you would have to remove:
brew remove mysql
Error: No such keg: /usr/local/Cellar/mysql
Try the version installed:
brew remove [email protected]
Uninstalling /usr/local/Cellar/[email protected]/5.7.24... (319 files, 234.5MB)
Upvotes: 17
Reputation: 354
I solved this problem by manually going to /usr/local directory. There was one mysql folder, I deleted. Also, delete my.cnf file, should be present It started working after that. If that too doesn't work, re-install homebrew, that will rectify symlink problem.
Upvotes: 1