brew链接mysql没有完成

taw*_*eed 37 mysql macos homebrew

由于某些原因,brew没有链接mysql,它抱怨许可.我chmod的文件夹,777但我仍然有同样的问题

  laptop$ brew install mysql 
Run Code Online (Sandbox Code Playgroud)

错误:

 mysql-5.5.27 already installed, it's just not linked

 laptop$ brew link mysql

 Linking /usr/local/Cellar/mysql/5.5.27... Warning: Could not link mysql. 
Run Code Online (Sandbox Code Playgroud)

取消链接...

    Error:
    Could not symlink file: /usr/local/Cellar/mysql/5.5.27/lib/plugin
    /usr/local/lib is not writable. You should change its permissions.
Run Code Online (Sandbox Code Playgroud)

taw*_*eed 99

我想出了问题所在.这是暂停的问题,我基本上这样做了

sudo chown -R $(whoami) /usr/local/lib/
Run Code Online (Sandbox Code Playgroud)