- 安裝Homebrew
這里我就不多寫了,具體看這個就行
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
把這個放到黑窗口shell里衡蚂,記得回車確定一下,還有把/usr/local/Cellar
,user/local/opt
還有報錯的所有文件夾的權(quán)限設(shè)置為可讀可寫年叮,就能直接安裝玻募、
Paste_Image.png - 安裝需要環(huán)境包
brew install git
brew install mysql - 開啟mysql服務(wù)
在shell里輸入
mysql.server start
這里就是開啟成功了
然后mysql -u root -p
回車輸入密碼就能
退出是`\q;`
這里集體補充報錯原因
沒開服務(wù)