Macbook Pro:如何彻底卸载MySQL

1. 如果不将旧版本的MySQL卸载彻底,无法安装其他版本MySQL。

删除指令如下

sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*

2. mac zsh: command not found: mysql

vim ~/.zshrc
alias mysql=/usr/local/mysql/bin/mysql

source ~/.zshrc

3. macbook查看安装的mysql connector的驱动版本

posted @ 2022-07-24 18:23  QualityAssurance21  阅读(220)  评论(0编辑  收藏  举报