mac系统完全删除mysql
mysql默认安装位置为/usr/local,删除相关文件
打开终端:
(base) ➜ ~ cd /usr/local/
(base) ➜ local ls
Cellar mysql
Homebrew mysql-8.0.24-macos11-x86_64
bin opt
etc remotedesktop
include share
lib texlive
man var
# 删除mysql相关
(base) ➜ local sudo rm -rf mysql*
# 删除Library/PreferencePanes/下mysql相关文件
(base) ➜ local sudo rm -rf /Library/PreferencePanes/My*
#删除/var/db/receipts/下mysql相关文件
huadembp:local huayu$ sudo rm -rf /var/db/receipts/com.mysql.*
#删除/tmp/下mysql相关文件
huadembp:local huayu$ sudo rm -rf /tmp/mysql.*
打开“系统偏好设置”,mysql图标可能还在(重启之后应该会消失)