从自制 Mac 中删除 Mysql

从自制 Mac 中删除 Mysql

执行 brew search mysql brew 时找到了一些东西,但是当我尝试卸载它时,它说找不到它。

macbookaaa:sbin aaaa$ brew search mysql 
==> Formulae
automysqlbackup                    mysql++                            [email protected]                   mysql-sandbox                      [email protected]                          mysqltuner
mysql                              mysql-client                       mysql-connector-c++                mysql-search-replace               [email protected]
==> Casks
mysql-connector-python             mysql-shell                        mysql-utilities                    mysqlworkbench                     navicat-for-mysql                  sqlpro-for-mysql
mysql-connector-python             mysql-shell                        mysql-utilities                    mysqlworkbench                     navicat-for-mysql                  sqlpro-for-mysql
macbookaaaa:sbin aaaa$ brew remove mysql 
Error: No available formula or cask with the name "mysql".
macbookaaaa:sbin aaaa$ brew remove mysql++
Error: No available formula or cask with the name "mysql++".
macbookaaaa:sbin aaaa$ 

答案1

brew search搜索所有可用的公式,而不是已安装的公式。remove 命令可能失败,因为您没有安装 MySQL。另外,应该是“uninstall”而不是 remove。

相关内容