MySql 重新安裝 Remove MySql Completely
MySql 重新安裝
呈 上篇 發現那樣處理,另外一個專案還是會打不開 QQ
所以後來決定整個砍掉再重新裝一次
- Open the Terminal
- Use
mysqldumpto backup your databases - Check for MySQL processes with:
ps -ax | grep mysql - Stop and kill any MySQL processes
- Analyze MySQL on HomeBrew:
brew remove mysql
brew cleanup
- Remove files:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/var/mysql
sudo rm -rf /usr/local/mysql*
sudo rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
- Unload previous MySQL Auto-Login:
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist - Remove previous MySQL Configuration:
subl /etc/hostconfig`
# Remove the line MYSQLCOM=-YES-
- Restart your computer just to ensure any MySQL processes are killed
- Try to run mysql, it shouldn’t work

留言
張貼留言