Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew remove mysql error

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
like image 968
Denis Milosavljevic Avatar asked Feb 05 '23 09:02

Denis Milosavljevic


1 Answers

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)
like image 133
Daniel Viglione Avatar answered Feb 08 '23 14:02

Daniel Viglione